feat(SW-718): parse room from searchParams

This commit is contained in:
Pontus Dreij
2025-01-21 08:50:42 +01:00
parent cffde6f9c3
commit 7d716dcf4a
3 changed files with 92 additions and 19 deletions

View File

@@ -41,10 +41,15 @@ export interface PaymentClientProps
savedCreditCards: CreditCard[] | null
}
export interface RoomParam {
adults: number
children?: { age: number; bed: number }[]
}
export interface SectionPageProps {
breakfast?: string
bed?: string
fromDate: string
toDate: string
room: { adults: number; child: { age: number; bed: number }[] }[]
room: RoomParam[]
}