feat: pass filters as prop

This commit is contained in:
Fredrik Thorsson
2024-08-05 14:36:27 +02:00
parent ebfe4d45dc
commit a48019a6a0
6 changed files with 35 additions and 43 deletions

View File

@@ -16,9 +16,13 @@ export default async function SelectHotelPage({
})
const hotels = [attributes]
const hotelFitlers = await serverClient().hotel.getFilters({
hotelId: "d98c7ab1-ebaa-4102-b351-758daf1ddf55",
})
return (
<main className={styles.main}>
<HotelFilter />
<HotelFilter filter={hotelFitlers} />
<section className={styles.section}>
{hotels.map((hotel) => (
<HotelCard key={hotel.name} hotel={hotel} />