2022-05-16 13:54:29 +02:00
|
|
|
import { AppShell, createStyles } from '@mantine/core';
|
2022-04-25 00:11:32 +02:00
|
|
|
import { Header } from './Header';
|
|
|
|
|
import { Footer } from './Footer';
|
2022-05-10 18:58:21 +02:00
|
|
|
import Aside from './Aside';
|
2022-04-25 00:11:32 +02:00
|
|
|
|
|
|
|
|
const useStyles = createStyles((theme) => ({
|
2022-05-16 13:54:29 +02:00
|
|
|
main: {},
|
2022-04-25 00:11:32 +02:00
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
export default function Layout({ children, style }: any) {
|
|
|
|
|
const { classes, cx } = useStyles();
|
|
|
|
|
return (
|
2022-05-17 21:36:07 +02:00
|
|
|
<AppShell aside={<Aside />} header={<Header />} footer={<Footer links={[]} />}>
|
2022-05-16 13:54:29 +02:00
|
|
|
<main
|
|
|
|
|
className={cx(classes.main)}
|
|
|
|
|
style={{
|
|
|
|
|
...style,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{children}
|
|
|
|
|
</main>
|
2022-04-25 00:11:32 +02:00
|
|
|
</AppShell>
|
|
|
|
|
);
|
|
|
|
|
}
|