feat(SW-1452): Added filtering and sorting to destination city pages * feat(SW-1452): Added filtering and sorting to destination city pages * feat(SW-1452): Added temporary component for country pages to avoid Context issues Approved-by: Matilda Landström
19 lines
428 B
TypeScript
19 lines
428 B
TypeScript
import { serverClient } from "@/lib/trpc/server"
|
|
|
|
import type {
|
|
ContentTypeParams,
|
|
LangParams,
|
|
PageArgs,
|
|
UIDParams,
|
|
} from "@/types/params"
|
|
|
|
export async function generateMetadata({
|
|
searchParams,
|
|
}: PageArgs<LangParams & ContentTypeParams & UIDParams, { subpage?: string }>) {
|
|
const { subpage } = searchParams
|
|
const metadata = await serverClient().contentstack.metadata.get({
|
|
subpage,
|
|
})
|
|
return metadata
|
|
}
|