@commercetools-frontend/react-notifications
Version:
React bindings for @commercetools-frontend/notifications
17 lines (16 loc) • 687 B
TypeScript
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;