mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
22 lines
456 B
TypeScript
22 lines
456 B
TypeScript
import dynamic from 'next/dynamic';
|
|
|
|
const Footer = dynamic(() => import('components/Footer'));
|
|
const HeadBar = dynamic(() => import('components/NavBar'));
|
|
const BackToTop = dynamic(() => import('components/common/BackToTop'));
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
const MainLayout = ({ children }: Props) => {
|
|
return (
|
|
<>
|
|
<HeadBar />
|
|
{children}
|
|
<Footer />
|
|
<BackToTop />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MainLayout; |