import e,{useId as t}from"react";import o from"../../node_modules/reactstrap/esm/Tooltip.js";import r from"../../node_modules/lodash/isEmpty.js";import{useToggle as l}from"../../utils/hooks.js";const m=({autohide:m=!0,children:n,delay:a,hoverText:i,id:s,placement:d})=>{const c=t(),p=s??c,[u,h]=l();if(r(i))return e.createElement(e.Fragment,null,n);const f={id:p};return e.createElement(e.Fragment,null,e.isValidElement(n)&&e.cloneElement(n,f),e.createElement(o,{autohide:m,delay:a,isOpen:u,placement:d??"right",target:c,toggle:h},i))};export{m as Hoverable,m as default};
//# sourceMappingURL=Hoverable.js.map
