mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
32 lines
824 B
TypeScript
32 lines
824 B
TypeScript
import { AppShell, createStyles } from '@mantine/core';
|
|
import { useConfigContext } from '../../config/provider';
|
|
import { Background } from './Background';
|
|
import { Footer } from './Footer';
|
|
import { Header } from './Header/Header';
|
|
import { Head } from './Header/Meta/Head';
|
|
|
|
const useStyles = createStyles(() => ({}));
|
|
|
|
export default function Layout({ children }: any) {
|
|
const { cx } = useStyles();
|
|
const { config } = useConfigContext();
|
|
|
|
return (
|
|
<AppShell
|
|
fixed={false}
|
|
header={<Header />}
|
|
footer={<Footer links={[]} />}
|
|
styles={{
|
|
main: {
|
|
minHeight: 'calc(100vh - var(--mantine-header-height))',
|
|
},
|
|
}}
|
|
>
|
|
<Head />
|
|
<Background />
|
|
{children}
|
|
<style>{cx(config?.settings.customization.customCss)}</style>
|
|
</AppShell>
|
|
);
|
|
}
|