10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import { ShowNotification, CloseNotification } from './useNotifications';
|
||
|
|
|
||
|
|
const NotificationsContext = React.createContext<{
|
||
|
|
show: ShowNotification;
|
||
|
|
close: CloseNotification;
|
||
|
|
} | null>(null);
|
||
|
|
|
||
|
|
export default NotificationsContext;
|