import { Suspense } from 'react';
import LocationEditPage from './LocationEditPage';
import { Main } from '@/app/ui/Main';
import { LocationEditFormSkeleton } from '@/app/ui/LocationEditForm';

export default async function Page({ params:{ id } }: { params: { id:string } }) {

    return (
        <Main>
            <Suspense fallback={<LocationEditFormSkeleton />}>
                <LocationEditPage  locationId={id} />
            </Suspense>
        </Main>
    );
}