From ef565fbfb1124b95f5828dabf0ebb1ad42116222 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 17 Jun 2026 14:20:57 -0600 Subject: [PATCH] feat(admin): add MobileTabBar with 4 primary tabs + More trigger --- src/components/admin/MobileTabBar.tsx | 94 +++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/components/admin/MobileTabBar.tsx diff --git a/src/components/admin/MobileTabBar.tsx b/src/components/admin/MobileTabBar.tsx new file mode 100644 index 0000000..b9bd7f2 --- /dev/null +++ b/src/components/admin/MobileTabBar.tsx @@ -0,0 +1,94 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { useState } from "react"; +import MoreSheet from "@/components/admin/MoreSheet"; + +const TABS = [ + { label: "Home", href: "/admin/v2", icon: HomeIcon }, + { label: "Orders", href: "/admin/v2/orders", icon: OrdersIcon }, + { label: "Stops", href: "/admin/v2/stops", icon: StopsIcon }, + { label: "Products", href: "/admin/v2/products", icon: ProductsIcon }, +]; + +function HomeIcon({ active }: { active: boolean }) { + return ( + + + + ); +} +function OrdersIcon({ active }: { active: boolean }) { + return ( + + + + + ); +} +function StopsIcon({ active }: { active: boolean }) { + return ( + + + + + ); +} +function ProductsIcon({ active }: { active: boolean }) { + return ( + + + + + ); +} + +export function MobileTabBar() { + const pathname = usePathname(); + const [moreOpen, setMoreOpen] = useState(false); + + return ( + <> + + setMoreOpen(false)} /> + + ); +} + +export default MobileTabBar;