Files
evidencija-rezija/app/location/[id]/add/page.tsx

16 lines
421 B
TypeScript

import { parseYearMonth } from '@/app/lib/format';
import { Main } from '@/app/ui/Main';
import dynamic from 'next/dynamic'
const LocationAddPage = dynamic(
() => import('./LocationAddPage'),
{ ssr: false }
)
export default async function Page({ params:{ id } }: { params: { id:string } }) {
return (
<Main>
<LocationAddPage yearMonth={ parseYearMonth(id) } />
</Main>
);
}