website refactor
This commit is contained in:
34
apps/website/templates/NotFoundTemplate.tsx
Normal file
34
apps/website/templates/NotFoundTemplate.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { NotFoundScreen } from '@/components/errors/NotFoundScreen';
|
||||
|
||||
export interface NotFoundViewData {
|
||||
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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user