"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),o=require("./ToolTip.js"),s=require("../styles/CustomTooltip.module.css.js");exports.default=function(r){var i=r.content,a=r.children,l=r.contentClassName,n=r.placement,c=void 0===n?"top":n,d=r.withArrow,u=void 0!==d&&d,f=r.sideOffset,p={top:s.default.arrow_top,bottom:s.default.arrow_bottom,left:s.default.arrow_left,right:s.default.arrow_right};return i?e.jsxs(o.Tooltip,t.__assign({delayDuration:100},{children:[e.jsx(o.TooltipTrigger,t.__assign({asChild:!0},{children:a})),e.jsxs(o.TooltipContent,t.__assign({side:c,sideOffset:f,className:"".concat(s.default.tooltipContent," ").concat(l||"")},{children:[u&&e.jsx("svg",t.__assign({width:8,height:8,viewBox:"0 0 8 8",className:"".concat(s.default.arrow," ").concat(p[c]||"")},{children:e.jsx("polygon",{points:"0,0 8,0 4,8"})})),i]}))]})):a};
//# sourceMappingURL=CustomTooltip.js.map
