add settings navigation

This commit is contained in:
Philipinho
2023-09-04 19:38:40 +01:00
parent 6af5c9a9ca
commit 03a9b81a80
10 changed files with 315 additions and 108 deletions

View File

@ -32,10 +32,16 @@ export default function SidebarToggleButton({
return (
<ButtonWithIcon
className={cn(className, 'z-[100]')}
className={cn(className, 'z-50')}
icon={<SidebarIcon size={20} />}
variant={'ghost'}
onClick={toggleSidebar}
></ButtonWithIcon>
/>
);
}
export function MobileSidebarToggle({ isSidebarOpen }) {
return (
<SidebarToggleButton className={`absolute top-0 ${isSidebarOpen ? "right-0" : "left-0"} right-0 m-4`} />
);
}