import { parseYearMonth } from '@/app/lib/format';
import { LocationEditFormSkeleton } from '@/app/ui/LocationEditForm';
import LocationAddPage from './LocationAddPage';
import { Main } from '@/app/ui/Main';
import { Suspense } from 'react';

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