UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 342 B
import{__rest as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import i,{useContext as e}from"react";const o=i.createContext({isInNotificationList:!1}),n=i=>{var{children:e}=i,n=r(i,["children"]);return t(o.Provider,{value:n,children:e})},c=()=>e(o);export{o as NotificationsContext,n as NotificationsProvider,c as useNotifications};