import e from"react";import"../../node_modules/react-redux/es/index.js";import{useSelector as t}from"../../node_modules/react-redux/es/hooks/useSelector.js";import{useToast as o}from"../../node_modules/@chakra-ui/toast/dist/esm/use-toast.js";function r(r){var i=t(r.selectNotification),s=i.title,n=i.text,l=i.visible,c=i.color,d=void 0===c?"info":c,u=o(),m=e.useRef();return l?m.current=u({title:s,description:n,status:d,isClosable:!0}):m.current&&u.close(m.current),e.createElement("div",null,e.createElement("div",{style:{position:"fixed",top:120,right:20,minWidth:"150px"}}))}export{r as NotificationMessage};
//# sourceMappingURL=NotificationMessage.js.map
