Room Matcher Page
Step-by-step matcher that collects party, dog and interests before recommending.
RoomMatcherPage hosts the two matching steps and assembles the final
RecommendationPreferences for the recommendation layer. The docs instance supplies local
callbacks and an imageBaseUrl so its illustration and dog icons resolve under the Pages base
path. Submitting does not run a search.
Props
| Prop | Values | Notes |
|---|---|---|
criteria | SearchCriteria | Optional stay context |
initialPreferences | RecommendationPreferences | Pre-fill the steps |
onBack | callback | Leave the matcher |
onSubmit | (preferences) => void | Receives the completed profile |
onViewAllRooms | callback | Optional browse escape hatch |
imageBaseUrl | string | Prefix for illustration and dog icons |
Responsive behaviour
The step content keeps a narrow reading column on phones and spreads to two columns at md.
Interest and party choices wrap; the illustration scales with its container.
Usage
import { RoomMatcherPage } from '@/components/booking/discovery/RoomMatcherPage';
<RoomMatcherPage onBack={goBack} onSubmit={showRecommendations} imageBaseUrl={basePath} />