import { Suspense } from 'react';
import LocationViewPage from './LocationViewPage';
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 />}>
                <LocationViewPage  locationId={id} />
            </Suspense>
        </Main>
    );
}