import { cache } from "react" import { serverClient } from "../../trpc" import type { BreackfastPackagesInput } from "@scandic-hotels/trpc/types/packages" export const getBreakfastPackages = cache( async function getMemoizedBreakfastPackages(input: BreackfastPackagesInput) { const caller = await serverClient() return caller.hotel.packages.breakfast(input) } )