Add mobile ribbon sidebars

This commit is contained in:
Meierschlumpf
2022-12-16 20:18:20 +01:00
parent 657e8c9102
commit 543bafc610
4 changed files with 84 additions and 25 deletions

View File

@@ -0,0 +1,27 @@
import { Drawer, Title } from '@mantine/core';
import { DashboardSidebar } from '../../Wrappers/Sidebar/Sidebar';
interface MobileRibbonSidebarDrawerProps {
onClose: () => void;
opened: boolean;
location: 'left' | 'right';
}
export const MobileRibbonSidebarDrawer = ({
location,
...props
}: MobileRibbonSidebarDrawerProps) => {
return (
<Drawer
position={location}
title={<Title order={4}>{location} sidebar</Title>}
style={{
display: 'flex',
justifyContent: 'center',
}}
{...props}
>
<DashboardSidebar location={location} />
</Drawer>
);
};