feat(SW-350): updated BookingWidgetType
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
|
import { VariantProps } from "class-variance-authority"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
import { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema"
|
import { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema"
|
||||||
|
import { bookingWidgetVariants } from "@/components/Forms/BookingWidget/variants"
|
||||||
|
|
||||||
import type { Locations } from "@/types/trpc/routers/hotel/locations"
|
import type { Locations } from "@/types/trpc/routers/hotel/locations"
|
||||||
|
|
||||||
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
|
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
|
||||||
|
|
||||||
export type BookingWidgetType = "default" | "full"
|
export type BookingWidgetType = VariantProps<
|
||||||
|
typeof bookingWidgetVariants
|
||||||
|
>["type"]
|
||||||
|
|
||||||
export interface BookingWidgetProps {
|
export interface BookingWidgetProps {
|
||||||
type?: BookingWidgetType
|
type?: BookingWidgetType
|
||||||
|
|||||||
Reference in New Issue
Block a user