import { notFound } from 'next/navigation';
import { fetchLocationById } from '@/app/lib/actions/locationActions';
import { LocationDeleteForm } from '@/app/ui/LocationDeleteForm';
import { Main } from '@/app/ui/Main';
import { Suspense } from 'react';
import { LocationDeletePage } from './LocationDeletePage';

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

    return (
        <Main>
            <Suspense fallback={<div>Loading...</div>}>
                <LocationDeletePage locationId={id} />
            </Suspense>
        </Main>
    );
}