UNPKG

facet-lib

Version:

React component library for the Bare Metal Installer

11 lines (10 loc) 426 B
import React from 'react'; import { AlertProps, AlertPayload } from '../features/alerts/alertsSlice'; export declare type AlertsContextType = { alerts: AlertProps[]; addAlert: (alert: AlertPayload) => void; removeAlert: (alertKey: string) => void; clearAlerts: () => void; }; export declare const AlertsContext: React.Context<AlertsContextType>; export declare const AlertsContextProvider: React.FC;