import { cache } from "react" import { serverClient } from "../../trpc" import type { Lang } from "@scandic-hotels/common/constants/language" export const getLocations = cache(async function getMemoizedLocations( lang: Lang ) { const caller = await serverClient() return caller.hotel.locations.get({ lang }) })