import * as React from "react"; import { Button } from "@/components/ui/primitives/button"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/ui/primitives/tooltip"; import { cn } from "@/lib/utils"; interface ActionButtonProps extends React.ComponentProps { label: string; shortcut?: string; isActive?: boolean; tooltipContent?: React.ReactNode; tooltipSide?: "top" | "right" | "bottom" | "left"; } export const ActionButton = React.forwardRef( ( { className, children, label, shortcut, isActive, tooltipContent, tooltipSide, ...props }, ref ) => { return ( {tooltipContent || (

{label} {shortcut && `(${shortcut})`}

)}
); } ); ActionButton.displayName = "ActionButton";