import { ReactNode } from "react" import { cn } from "@/lib/utils" export function MenuItem({ icon = null, children = null, selected = false, onClick = undefined, className = "", }: { icon?: ReactNode children?: ReactNode selected?: boolean onClick?: () => void className?: string }) { return (
{ if (onClick && !selected) { onClick() } }} >
{icon}
{children}
) }