import { Metadata } from "next"; import { ZammadOverview } from "./_components/ZammadOverview"; const getSection = (overview: string) => { return overview.charAt(0).toUpperCase() + overview.slice(1); }; type MetadataProps = { params: { overview: string; }; }; export async function generateMetadata({ params: { overview }, }: MetadataProps): Promise { const section = getSection(overview); return { title: `Link - ${section} Tickets`, }; } const overviews = { assigned: 1, unassigned: 2, recent: 3, open: 5, urgent: 7, }; type PageProps = { params: { overview: string; }; }; export default function Page({ params: { overview } }: PageProps) { const section = getSection(overview); console.log({ section }); return ; }