UNPKG

@commercetools-frontend/react-notifications

Version:
17 lines (16 loc) 687 B
import { SyntheticEvent } from 'react'; import type { TAppNotification, TAppNotificationValuesApiError } from '@commercetools-frontend/constants'; import { NOTIFICATION_DOMAINS, NOTIFICATION_KINDS_PAGE } from '@commercetools-frontend/constants'; type Props = { notification: TAppNotification<{ domain: typeof NOTIFICATION_DOMAINS.PAGE; kind: (typeof NOTIFICATION_KINDS_PAGE)['api-error']; values: TAppNotificationValuesApiError; }>; dismiss: (event: SyntheticEvent) => void; }; declare const ApiErrorNotification: { (props: Props): import("@emotion/react/jsx-runtime").JSX.Element; displayName: string; }; export default ApiErrorNotification;