import { PageWrapper } from '@/components/shared/state/PageWrapper';
import HomeTemplate from '@/templates/HomeTemplate';
import { PageDataFetcher } from '@/lib/page/PageDataFetcher';
import { getHomeData } from '@/lib/services/home/getHomeData';
import { notFound } from 'next/navigation';

export default async function Page() {
  const data = await PageDataFetcher.fetchManual(async () => getHomeData());
  
  if (!data) {
    notFound();
  }
  
  return <PageWrapper data={data} Template={HomeTemplate} />;
}