import { cache } from "react" import { serverClient } from ".." import type { HotelInput } from "@scandic-hotels/trpc/types/hotel" export const getHotel = cache(async function getMemoizedHotelData( input: HotelInput ) { input.isCardOnlyPayment ??= false const caller = await serverClient() return caller.hotel.get(input) })