ToursList
Every tour the current token can see, as a selectable grid. Reads through
tours.list().
Props
| Prop | Type | Description |
|---|---|---|
onSelect | (tour: PropertyListItem) => void | Fires when a tour is picked. Navigate to your own tour route from here. |
emptyMessage | string | Shown when there are no tours. Defaults to "No tours yet". |
Example
<ToursList onSelect={tour => navigate(`/tours/${tour.id}`)} />
The callback receives a PropertyListItem
— a summary shape with id, name and thumbnailURL. Fetch the tour by id if
you need its floors, rooms and scans.