UNPKG

amplify-material-ui

Version:

A Material-UI based implementation of aws amplify

11 lines (10 loc) 367 B
import * as React from 'react'; function createNamedContext(name, defaultValue) { var context = React.createContext(defaultValue); context.displayName = name; return context; } export var NotificationContext = createNamedContext('Notification', null); export var useNotificationContext = function () { return React.useContext(NotificationContext); };