import { ReactNode } from "react"; import Link from "next/link"; import { useSidebarStore } from "@/stores/SidebarStore"; interface MenuItemProps { label: string; onClick?: () => void; icon?: ReactNode; href?: string; } export default function MenuItem({ label, onClick, icon, href }: MenuItemProps) { const close = useSidebarStore((state) => state.close); function handleClick() { onClick?.(); close(); } return ( {icon}

{label}

); }