Files
gridpilot.gg/apps/website/templates/NotFoundTemplate.tsx
2026-01-26 17:56:11 +01:00

35 lines
789 B
TypeScript

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}
/>
);
}