import { j as jsxRuntimeExports } from '../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { Provider as $a093c7e1ec25a057$export$2881499e37b75b9a, Root as $a093c7e1ec25a057$export$be92b6f5f03c0fe9, Trigger as $a093c7e1ec25a057$export$41fb9f06171c75f4, Portal as $a093c7e1ec25a057$export$602eac185826482c, Content as $a093c7e1ec25a057$export$7c6e2c02157bb7d2 } from '../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.js';
import { Text } from '../text/text.js';
import styles from './tooltip.module.css.js';
import { clsx } from '../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';

const Tooltip = ({ children, message, disabled, side = "right", classes, }) => {
    return disabled ? (children) : (jsxRuntimeExports.jsx($a093c7e1ec25a057$export$2881499e37b75b9a, { children: jsxRuntimeExports.jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { disableHoverableContent: false, children: [jsxRuntimeExports.jsx($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children: jsxRuntimeExports.jsx("div", { className: clsx(styles.trigger, classes?.trigger ?? ""), children: children }) }), jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: jsxRuntimeExports.jsx($a093c7e1ec25a057$export$7c6e2c02157bb7d2, { side: side, sideOffset: 5, className: clsx(styles.content, classes?.content ?? ""), children: typeof message === "string" ? jsxRuntimeExports.jsx(Text, { children: message }) : message }) })] }) }));
};

export { Tooltip };
//# sourceMappingURL=tooltip.js.map
