import { jsx, jsxs } from "react/jsx-runtime";
import { forwardRef } from "react";
import { Button, Tooltip, TooltipContent, TooltipTrigger } from "@uipath/apollo-wind";
const ToolbarButton_ToolbarButton = /*#__PURE__*/ forwardRef(function({ label, tooltip, testId, onClick, disabled, className, tooltipSide, children }, ref) {
    return /*#__PURE__*/ jsxs(Tooltip, {
        children: [
            /*#__PURE__*/ jsx(TooltipTrigger, {
                asChild: true,
                children: /*#__PURE__*/ jsx(Button, {
                    ref: ref,
                    "data-testid": testId,
                    "aria-label": label,
                    variant: "ghost",
                    size: "xs",
                    icon: true,
                    className: className,
                    onClick: onClick,
                    disabled: disabled,
                    children: children
                })
            }),
            /*#__PURE__*/ jsx(TooltipContent, {
                side: tooltipSide,
                children: tooltip ?? label
            })
        ]
    });
});
export { ToolbarButton_ToolbarButton as ToolbarButton };
