build fix

This commit is contained in:
alma 2025-05-05 12:40:08 +02:00
parent 6783e9700b
commit 659808985b

View File

@ -10,13 +10,7 @@ const menuItems = {
missions: "https://example.com/missions"
}
type PageProps = {
params: {
section: string;
};
};
export default async function SectionPage({ params }: PageProps) {
export default async function SectionPage({ params }: { params: { section: string } }) {
const section = params?.section ? String(params.section) : '';
const iframeUrl = menuItems[section as keyof typeof menuItems];