import { createContext, useContext } from 'react'; import { NotificationsStore } from '@teambit/ui-foundation.ui.notifications.store'; const DefaultNotificationApi: NotificationsStore = { add: () => '', log: () => '', error: () => '', dismiss: () => {}, clear: () => {}, }; export const NotificationContext = createContext(DefaultNotificationApi); export const useNotifications = () => { return useContext(NotificationContext); };