"use client"; import { MoreHorizontal, type LucideIcon } from "lucide-react"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { cn } from "@/lib/utils"; export type HeaderActionsMenuItem = { label: string; icon?: LucideIcon; onSelect: () => void; disabled?: boolean; variant?: "default" | "danger"; }; export function HeaderActionsMenu({ items, title = "Actions", }: { items: HeaderActionsMenuItem[]; title?: string; }) { return ( {items.map((item) => { const Icon = item.icon; return ( {Icon && } {item.label} ); })} ); }