Journey Rooms
Room results view with index and photo-spread layouts driven by a match profile.
PhotoRooms presents the rooms available for a stay. With studioCatalog it renders the
deterministic studio catalogue; the profile can bias ordering and copy. Selecting a room in
the docs only updates a local status message — no reservation is created.
Former Storybook states
PhotoSpreads disables the studio index, and WithPreferences supplies a romance profile.
Props
| Prop | Values | Notes |
|---|---|---|
profile | MatchProfile or null | Drives recommendation copy and ordering |
rooms | ShapedRoom[] | Empty in docs; studio catalogue is used |
studioCatalog | boolean | Selects the index view over photo spreads |
imageBaseUrl / galleries | string / map | Photo URL prefix and optional CMS galleries |
guests / children | number | Occupancy context |
onChoose, onEditJournal, onChangeDates | callbacks | Recorded locally in docs |
Responsive behaviour
The index is a responsive grid of room cards; photo spreads become a single-column story on phones. Controls stay reachable at every breakpoint and the wrapper introduces no horizontal scrolling.
Usage
import { PhotoRooms } from '@/journey/PhotoRooms';
<PhotoRooms {...roomsState} imageBaseUrl={basePath} onChoose={chooseRoom} />