feat: SW-683 SW-684 Prefill location & date in BW via query params
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user