diff --git a/types/components/bookingWidget/index.ts b/types/components/bookingWidget/index.ts index 0f42a7d58..fb511bc86 100644 --- a/types/components/bookingWidget/index.ts +++ b/types/components/bookingWidget/index.ts @@ -1,12 +1,16 @@ +import { VariantProps } from "class-variance-authority" import { z } from "zod" import { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema" +import { bookingWidgetVariants } from "@/components/Forms/BookingWidget/variants" import type { Locations } from "@/types/trpc/routers/hotel/locations" export type BookingWidgetSchema = z.output -export type BookingWidgetType = "default" | "full" +export type BookingWidgetType = VariantProps< + typeof bookingWidgetVariants +>["type"] export interface BookingWidgetProps { type?: BookingWidgetType