mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
✨ Implement search for new header
This commit is contained in:
23
src/components/layout/main.tsx
Normal file
23
src/components/layout/main.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user