import { parseYearMonth } from '@/app/lib/format';
import { Main } from '@/app/ui/Main';
import dynamic from 'next/dynamic'

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

export default async function Page({ params:{ id } }: { params: { id:string } }) {
    return (
        <Main>
            <LocationAddPage yearMonth={ parseYearMonth(id) } />
        </Main>
    );
}