feat: Add hotel page component

This commit is contained in:
Chuma McPhoy
2024-06-26 15:48:35 +02:00
parent 0d8c29bd01
commit 0f0bd7361e
3 changed files with 57 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { notFound } from "next/navigation"
import ContentPage from "@/components/ContentType/ContentPage"
import HotelPage from "@/components/ContentType/HotelPage"
import LoyaltyPage from "@/components/ContentType/LoyaltyPage"
import {
@@ -18,6 +19,8 @@ export default async function ContentTypePage({
return <ContentPage />
case "loyalty-page":
return <LoyaltyPage lang={params.lang} />
case "hotel-page":
return <HotelPage lang={params.lang} />
default:
const type: never = params.contentType
console.error(`Unsupported content type given: ${type}`)