SW-3490 set metadata for routes * feat(SW-3490): Set metadata title for hotelreservation paths Approved-by: Anton Gunnarsson
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
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)
|
|
})
|