mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
20 lines
357 B
TypeScript
20 lines
357 B
TypeScript
import { FC } from 'react';
|
|
import dynamic from 'next/dynamic';
|
|
|
|
const Footer = dynamic(() => import('components/Footer'));
|
|
const HeadBar = dynamic(() => import('components/NavBar'));
|
|
|
|
const MainLayout: FC = ({ children }) => {
|
|
return (
|
|
<>
|
|
<HeadBar />
|
|
|
|
<main>{children}</main>
|
|
|
|
<Footer />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MainLayout;
|