Files
gridpilot.gg/apps/website/templates/NotFoundTemplate.tsx
Marc Mintel 18133aef4c
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 5m42s
Contract Testing / contract-snapshot (pull_request) Has been skipped
view data fixes
2026-01-22 23:40:38 +01:00

35 lines
802 B
TypeScript

'use client';
import { NotFoundScreen } from '@/components/errors/NotFoundScreen';
import { ViewData } from '@/lib/contracts/view-data/ViewData';
export interface NotFoundViewData extends ViewData {
errorCode: string;
title: string;
message: string;
actionLabel: string;
}
interface NotFoundTemplateProps {
viewData: NotFoundViewData;
onHomeClick: () => void;
}
/**
* NotFoundTemplate
*
* Template for the 404 page.
* Composes semantic components to build the page layout.
*/
export function NotFoundTemplate({ viewData, onHomeClick }: NotFoundTemplateProps) {
return (
<NotFoundScreen
errorCode={viewData.errorCode}
title={viewData.title}
message={viewData.message}
actionLabel={viewData.actionLabel}
onActionClick={onHomeClick}
/>
);
}