@salvoravida/reapop
Version:
A simple & customizable notifications system for React
15 lines (14 loc) • 595 B
TypeScript
/// <reference types="react" />
import { Notification } from '../reducers/notifications/types';
import { Theme } from '../themes/types';
import { ComponentContextType } from '../contexts/componentsContext';
export declare type DismissNotification = (id: string) => void;
export declare type Props = {
notifications: Notification[];
dismissNotification: DismissNotification;
smallScreenBreakpoint?: number;
components?: ComponentContextType;
theme?: Theme;
};
declare const NotificationsSystem: (props: Props) => JSX.Element;
export default NotificationsSystem;