blob: ebbc1ad5997f707e1630d27d368410c8ff419720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import dynamic from 'next/dynamic';
import AnimationLayout from './AnimationLayout';
const AppBar = dynamic(() => import('../elements/Appbar/Appbar'), {
ssr: false,
});
const BasicFooter = dynamic(() => import('../elements/Footer/BasicFooter'), {
ssr: false,
});
const AppLayout = ({ children, title, withFooter = true }) => {
return (
<>
<AnimationLayout>
<AppBar title={title} />
{children}
</AnimationLayout>
{withFooter && <BasicFooter />}
</>
);
};
export default AppLayout;
|