import{useState as e,useEffect as n}from"react";import{v4 as r}from"uuid";import{useDcFullscreenElemsCoordinator as o}from"../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";function t(t){var s=t.isOpen,i=e(!1),p=i[0],c=i[1],d=o(),u=d.requestOpen,m=d.requestClose,l=e((function(){return r()}))[0];return n((function(){s?u({setIsOpened:c,id:l}):m({setIsOpened:c,id:l})}),[s]),n((function(){return function(){m({setIsOpened:c,id:l},!0)}}),[]),{delayedIsOpen:p}}export{t as useDelayedDcFullscreenElemOpen};
