UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

19 lines 853 B
import { PayloadAction } from '@reduxjs/toolkit'; import { AlertVariant } from '@patternfly/react-core'; export type AlertPayload = { title: string; message?: string; variant?: AlertVariant; }; export type AlertProps = { key: string; title: string; variant: AlertVariant; message?: string; }; export declare const alertsSlice: import("@reduxjs/toolkit").Slice<AlertProps[], { addAlert: (state: import("immer/dist/internal").WritableDraft<AlertProps>[], action: PayloadAction<AlertPayload>) => import("immer/dist/internal").WritableDraft<AlertProps>[]; removeAlert: (state: import("immer/dist/internal").WritableDraft<AlertProps>[], action: PayloadAction<string>) => import("immer/dist/internal").WritableDraft<AlertProps>[]; clearAlerts: () => AlertProps[]; }, "alerts">; //# sourceMappingURL=alertsSlice.d.ts.map