From 30a991cc664516d63440de08f551c6ced527ade2 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:54 +0530 Subject: [PATCH] feat: add admin sidebar with mobile menu --- .../admin/sidebar/admin-sidebar.tsx | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/components/admin/sidebar/admin-sidebar.tsx diff --git a/app/components/admin/sidebar/admin-sidebar.tsx b/app/components/admin/sidebar/admin-sidebar.tsx new file mode 100644 index 0000000..20a006b --- /dev/null +++ b/app/components/admin/sidebar/admin-sidebar.tsx @@ -0,0 +1,33 @@ +import { useState } from 'react'; +import { Menu } from 'lucide-react'; +import { Button } from '~/components/ui/button'; +import { Sheet, SheetContent, SheetTitle, SheetTrigger } from '~/components/ui/sheet'; +import { SidebarBrand } from '~/components/admin/sidebar/sidebar-brand'; +import { SidebarContent } from '~/components/admin/sidebar/sidebar-content'; + +// Fixed sidebar on desktop; a top bar with a slide-out menu on smaller screens +export function AdminSidebar() { + const [open, setOpen] = useState(false); + + return ( + <> + +
+ + + + + + + Menu + setOpen(false)} /> + + +
+ + ); +}