amplify-material-ui
Version:
A Material-UI based implementation of aws amplify
13 lines (12 loc) • 509 B
TypeScript
import * as React from 'react';
export interface NotificationState {
content: string;
variant: 'success' | 'warning' | 'error' | 'info';
}
export interface NotificationContextProps {
showNotification: (notificationState: NotificationState) => void;
clearNotification: () => void;
notification: NotificationState | null;
}
export declare const NotificationContext: React.Context<NotificationContextProps | null>;
export declare const useNotificationContext: () => NotificationContextProps;