moved all the pages into [locale]

This commit is contained in:
2024-02-16 15:51:26 +01:00
parent 64bd026d46
commit ba0934e8cd
19 changed files with 0 additions and 93 deletions

31
app/[locale]/page.tsx Normal file
View File

@@ -0,0 +1,31 @@
import { FC, Suspense } from 'react';
import { Main } from './ui/Main';
import HomePage from './ui/HomePage';
import { MonthCardSkeleton } from './ui/MonthCardSkeleton';
export interface PageProps {
searchParams?: {
year?: string;
month?: string;
};
}
const HomePageSkeleton = () =>
<>
<MonthCardSkeleton checked={true} />
<MonthCardSkeleton />
<MonthCardSkeleton />
</>
const Page:FC<PageProps> = async ({ searchParams }) => {
return (
<Main>
<Suspense fallback={<HomePageSkeleton />}>
<HomePage searchParams={searchParams} />
</Suspense>
</Main>
);
}
export default Page;