"use client"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; import type { ComponentProps } from "react"; export type ActionsProps = ComponentProps<"div">; export const Actions = ({ className, children, ...props }: ActionsProps) => (
{children}
); export type ActionProps = ComponentProps & { tooltip?: string; label?: string; }; export const Action = ({ tooltip, children, label, className, variant = "ghost", size = "sm", ...props }: ActionProps) => { const button = ( ); if (tooltip) { return ( {button}

{tooltip}

); } return button; };