feat: get breakfast package from API

This commit is contained in:
Simon Emanuelsson
2024-10-28 10:12:03 +01:00
parent fc8844eb96
commit 62f549e85d
47 changed files with 718 additions and 210 deletions

View File

@@ -1,5 +1,21 @@
import { z } from "zod"
import { breakfastSchema } from "@/components/HotelReservation/EnterDetails/Breakfast/schema"
import {
breakfastPackageSchema,
breakfastPackagesSchema,
} from "@/server/routers/hotels/output"
export interface BreakfastSchema extends z.output<typeof breakfastSchema> {}
import { breakfastFormSchema } from "@/components/HotelReservation/EnterDetails/Breakfast/schema"
export interface BreakfastFormSchema
extends z.output<typeof breakfastFormSchema> {}
export interface BreakfastPackages
extends z.output<typeof breakfastPackagesSchema> {}
export interface BreakfastPackage
extends z.output<typeof breakfastPackageSchema> {}
export interface BreakfastProps {
packages: BreakfastPackages | null
}