'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../node_modules/.pnpm/@radix-ui_react-tooltip@1.0.7_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-tooltip/dist/index.cjs');
var text = require('../text/text.cjs');
var tooltip_module = require('./tooltip.module.css.cjs');
var clsx = require('../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs');

const Tooltip = ({ children, message, disabled, side = "right", classes, }) => {
    return disabled ? (children) : (jsxRuntime.jsxRuntimeExports.jsx(index.Provider, { children: jsxRuntime.jsxRuntimeExports.jsxs(index.Root, { disableHoverableContent: false, children: [jsxRuntime.jsxRuntimeExports.jsx(index.Trigger, { asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx.clsx(tooltip_module.default.trigger, classes?.trigger ?? ""), children: children }) }), jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { side: side, sideOffset: 5, className: clsx.clsx(tooltip_module.default.content, classes?.content ?? ""), children: typeof message === "string" ? jsxRuntime.jsxRuntimeExports.jsx(text.Text, { children: message }) : message }) })] }) }));
};

exports.Tooltip = Tooltip;
//# sourceMappingURL=tooltip.cjs.map
