mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
34 lines
706 B
TypeScript
34 lines
706 B
TypeScript
import { Container } from '@mantine/core';
|
|
import { PropsWithChildren } from 'react';
|
|
import { MantineFooter } from '~/components/footer/footer';
|
|
import Navbar from '~/components/navbar/navbar';
|
|
import BaseLayout from '~/layouts/_base_layout';
|
|
|
|
const ContentLayout = ({ children }: PropsWithChildren) => (
|
|
<Container
|
|
style={{
|
|
minHeight: '100%',
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
}}
|
|
>
|
|
<Navbar />
|
|
<main
|
|
style={{
|
|
flex: 1,
|
|
}}
|
|
>
|
|
{children}
|
|
</main>
|
|
<MantineFooter />
|
|
</Container>
|
|
);
|
|
|
|
const LayoutWrapper = ({ children }: PropsWithChildren) => (
|
|
<BaseLayout>
|
|
<ContentLayout>{children}</ContentLayout>
|
|
</BaseLayout>
|
|
);
|
|
|
|
export { LayoutWrapper as ContentLayout };
|