Add layouts folder to the app-impress, it will contain all the layouts for the app. For the moment: - MainLayout.tsx - PadLayout.tsx
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import { ReactElement } from 'react';
|
|
|
|
import { Box } from '@/components';
|
|
import { MainLayout } from '@/layouts';
|
|
import { NextPageWithLayout } from '@/types/next';
|
|
|
|
const Page: NextPageWithLayout = () => {
|
|
return <Box>Recent</Box>;
|
|
};
|
|
|
|
Page.getLayout = function getLayout(page: ReactElement) {
|
|
return <MainLayout>{page}</MainLayout>;
|
|
};
|
|
|
|
export default Page;
|