"use client" import * as React from "react" import { HugeiconsIcon } from "@hugeicons/react" import { Cancel01Icon, CheckmarkCircle02Icon, CheckmarkSquare01Icon, Delete02Icon, EyeIcon, PencilEdit01Icon, PrinterIcon, } from "@hugeicons/core-free-icons" import { Button } from "@/components/ui/button" import { cn } from "@/lib/utils" const ACTION_ICONS = { activate: CheckmarkCircle02Icon, cancel: Delete02Icon, close: Cancel01Icon, confirm: CheckmarkCircle02Icon, deactivate: Cancel01Icon, edit: PencilEdit01Icon, finalize: CheckmarkSquare01Icon, print: PrinterIcon, view: EyeIcon, } as const type RowActionKind = keyof typeof ACTION_ICONS function RowActions({ className, ...props }: React.ComponentProps<"div">) { return (
) } function RowActionButton({ action, label, tone = "default", className, ...props }: Omit