import { Drawer } from "antd"; import { Link } from "react-router-dom"; import { navigationTools, type NavigationToolSlug } from "@/constant/navigation-tools"; import { cn } from "@/lib/utils"; type MobileNavDrawerProps = { open: boolean; activeToolSlug?: NavigationToolSlug; onClose: () => void; }; export function MobileNavDrawer({ open, activeToolSlug, onClose }: MobileNavDrawerProps) { return (
{navigationTools.map((tool) => { const Icon = tool.icon; const active = tool.slug === activeToolSlug; return ( {tool.label} ); })}
); }