Files
neuf-www/web/src/app/foreninger/page.tsx
T

20 lines
564 B
TypeScript

import { Metadata, ResolvingMetadata } from "next";
import {
AssociationIndexView,
loadAssociationIndexProps,
} from "@/components/associations/AssociationIndexView";
import { getSeoMetadata } from "@/lib/seo";
export async function generateMetadata(
_: unknown,
parent: ResolvingMetadata
): Promise<Metadata | null> {
const { index } = await loadAssociationIndexProps();
return getSeoMetadata(index, parent);
}
export default async function Page() {
const props = await loadAssociationIndexProps();
return <AssociationIndexView {...props} />;
}