feat: SW-683 SW-684 Prefill location & date in BW via query params

This commit is contained in:
Hrishikesh Vaipurkar
2024-10-23 13:45:56 +02:00
parent d8bc677b4d
commit 8fe4294bf9
6 changed files with 89 additions and 11 deletions

View File

@@ -8,17 +8,27 @@ import type { Locations } from "@/types/trpc/routers/hotel/locations"
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
export type BookingWidgetSearchParams = {
city?: string
hotel?: string
fromDate?: string
toDate?: string
room?: string
}
export type BookingWidgetType = VariantProps<
typeof bookingWidgetVariants
>["type"]
export interface BookingWidgetProps {
type?: BookingWidgetType
searchParams?: BookingWidgetSearchParams
}
export interface BookingWidgetClientProps {
locations: Locations
type?: BookingWidgetType
searchParams?: BookingWidgetSearchParams
}
export interface BookingWidgetToggleButtonProps {