mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 09:11:38 +00:00
23 lines
460 B
TypeScript
23 lines
460 B
TypeScript
import dynamic from 'next/dynamic';
|
|
|
|
const Footer = dynamic(() => import('components/footer'));
|
|
const HeadBar = dynamic(() => import('components/nav-bar'));
|
|
const BackToTop = dynamic(() => import('components/common/back-to-top'));
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
const MainLayout = ({ children }: Props) => {
|
|
return (
|
|
<>
|
|
<HeadBar />
|
|
{children}
|
|
<Footer />
|
|
<BackToTop />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MainLayout;
|