UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

10 lines 443 B
import { useContext } from 'react'; import { CloseNotificationContext } from './CloseNotificationContext'; export var useCloseNotification = function () { var closeNotification = useContext(CloseNotificationContext); if (!closeNotification) { throw new Error('useCloseNotification must be used within a CloseNotificationContext.Provider'); } return closeNotification; }; //# sourceMappingURL=useCloseNotification.js.map