Implement search for new header

This commit is contained in:
Meier Lukas
2023-07-29 20:56:08 +02:00
parent ed23e388f9
commit 0c3d9f335c
5 changed files with 294 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
import { AppShell, useMantineTheme } from '@mantine/core';
import { MainHeader } from './new-header/Header';
type MainLayoutProps = {
children: React.ReactNode;
};
export const MainLayout = ({ children }: MainLayoutProps) => {
const theme = useMantineTheme();
return (
<AppShell
styles={{
root: {
background: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[1],
},
}}
header={<MainHeader />}
>
{children}
</AppShell>
);
};