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