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