import { z } from "zod"

import {
  getRoomPackagesSchema,
  packagesSchema,
} from "@/server/routers/hotels/output"

export enum RoomPackageCodeEnum {
  PET_ROOM = "PETR",
  ALLERGY_ROOM = "ALLG",
  ACCESSIBILITY_ROOM = "ACCE",
}
export interface RoomFilterProps {
  numberOfRooms: number
  onFilter: (filter: Record<string, boolean | undefined>) => void
  filterOptions: RoomPackageData
}

export type RoomPackage = z.output<typeof packagesSchema>
export interface RoomPackageData extends Array<RoomPackage> {}

export type RoomPackageCodes = RoomPackage["code"]
