Match Or Browse Screen
Choice screen between a guided match and browsing the full room catalogue.
MatchOrBrowseScreen asks the guest whether to be matched to a room or to see every option. It
receives already-resolved SearchCriteria and an optional availability count; it performs no
fetch itself. The docs fixture uses a fixed three-night Catskills stay.
Props
| Prop | Values | Notes |
|---|---|---|
criteria | SearchCriteria | Fixed dates, guests and property in docs |
availableCount | number | Optional count shown in the browse action |
onFindYourStay | callback | Begin guided matching |
onShowAllRooms | callback | Open the full catalogue |
onChangeDates | callback | Return to the date selector |
Responsive behaviour
The two choices stack on phones and sit side by side from sm up. The date summary wraps
within its card, so long formatting does not push the actions off-screen.
Usage
import { MatchOrBrowseScreen } from '@/components/booking/discovery/MatchOrBrowseScreen';
<MatchOrBrowseScreen
criteria={criteria}
availableCount={12}
onFindYourStay={startMatch}
onShowAllRooms={showAll}
onChangeDates={editDates}
/>