Skip to main content

ToursList

Every tour the current token can see, as a selectable grid. Reads through tours.list().

Props

PropTypeDescription
onSelect(tour: PropertyListItem) => voidFires when a tour is picked. Navigate to your own tour route from here.
emptyMessagestringShown 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.