import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{Tooltip as r}from"@material-ui/core";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{IsInsideDcFullscreenElemProvider as t}from"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{useDelayedDcFullscreenElemOpen as s}from"../../effects/useDelayedDcFullscreenElemOpen.js";var i=function(i){var l=i.onOpen,p=i.onClose,m=i.open,c=i.title,u=i.TransitionProps,a=void 0===u?{}:u,d=e(i,["onOpen","onClose","open","title","TransitionProps"]),C=s({isOpen:!!m}),f=C.delayedIsOpen,v=C.requestOpen,D=C.requestClose,O="boolean"==typeof m;return n(r,o({},d,{open:f,onOpen:function(e){null==l||l(e),O||v()},onClose:function(e){null==p||p(e),O||D()},TransitionProps:o(o({},a),{timeout:0}),title:n(t,{children:c})}))};export{i as DcTooltip};
