website refactor
This commit is contained in:
20
apps/website/client-wrapper/HomePageClient.tsx
Normal file
20
apps/website/client-wrapper/HomePageClient.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client';
|
||||
|
||||
import { HomeTemplate, type HomeViewData } from '@/templates/HomeTemplate';
|
||||
import { PageWrapper } from '@/components/shared/state/PageWrapper';
|
||||
|
||||
interface HomePageClientProps {
|
||||
viewData: HomeViewData;
|
||||
}
|
||||
|
||||
/**
|
||||
* HomePageClient - Client wrapper for the Home page.
|
||||
* Manages state and handlers for the home page.
|
||||
*/
|
||||
export function HomePageClient({ viewData }: HomePageClientProps) {
|
||||
const Template = ({ viewData }: { viewData: HomeViewData }) => (
|
||||
<HomeTemplate viewData={viewData} />
|
||||
);
|
||||
|
||||
return <PageWrapper data={viewData} Template={Template} />;
|
||||
}
|
||||
Reference in New Issue
Block a user