/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-032998c
 * Released under the MIT license.
 */

import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
import invariant from 'tiny-invariant';
const NotificationContext = createContext(null);
/**
 * @internal This component is unstable and must not be used outside of `NotificationView`.
 */
export function NotificationProvider(props) {
    const { children, ...value } = props;
    return (_jsx(NotificationContext.Provider, { value: value, children: children }));
}
export function useNotificationContext() {
    const context = useContext(NotificationContext);
    invariant(context, 'This component cannot be used outside of <Notification />');
    return context;
}

        