23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
import { Metadata, ResolvingMetadata } from "next";
|
|
import {
|
|
ContactIndexView,
|
|
loadContactIndexProps,
|
|
} from "@/components/contact/ContactIndexView";
|
|
import { getSeoMetadata } from "@/lib/seo";
|
|
|
|
// Fail the build if this route stops being fully prerendered
|
|
export const ensureStatic = "navigation";
|
|
|
|
export async function generateMetadata(
|
|
_: unknown,
|
|
parent: ResolvingMetadata
|
|
): Promise<Metadata | null> {
|
|
const { index } = await loadContactIndexProps();
|
|
return getSeoMetadata(index, parent);
|
|
}
|
|
|
|
export default async function Page() {
|
|
const props = await loadContactIndexProps();
|
|
return <ContactIndexView {...props} />;
|
|
}
|