import { cache } from "react" import { serverClient } from "../../trpc" import type { CityCoordinatesInput } from "@scandic-hotels/trpc/types/hotel" export const getCityCoordinates = cache( async function getMemoizedCityCoordinates(input: CityCoordinatesInput) { const caller = await serverClient() return caller.hotel.map.city(input) } )