feat: get breakfast package from API

This commit is contained in:
Simon Emanuelsson
2024-10-28 10:12:03 +01:00
parent fc8844eb96
commit 62f549e85d
47 changed files with 718 additions and 210 deletions

View File

@@ -89,3 +89,9 @@ export const getLanguageSwitcher = cache(
export const getSiteConfig = cache(async function getMemoizedSiteConfig() {
return serverClient().contentstack.base.siteConfig()
})
export const getBreakfastPackages = cache(async function getMemoizedPackages(
hotelId: string
) {
return serverClient().hotel.packages.breakfast({ hotelId })
})