import { FC, Suspense } from 'react';
import { Main } from './ui/Main';
import dynamic from 'next/dynamic'

const HomePage = dynamic(
  () => import('./ui/HomePage'),
  { ssr: false }
)

export interface PageProps {
  searchParams?: {
    year?: string;
    month?: string;
  };
}

const Page:FC<PageProps> = async ({ searchParams }) => {

 return (
    <Main>
      <HomePage />
    </Main>
  );
}

export default Page;