@commercetools-frontend/react-notifications
Version:
React bindings for @commercetools-frontend/notifications
17 lines (16 loc) • 722 B
TypeScript
import { SyntheticEvent } from 'react';
import type { TAppNotification, TAppNotificationValuesUnexpectedError } 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)['unexpected-error'];
values: TAppNotificationValuesUnexpectedError;
}>;
dismiss: (event: SyntheticEvent) => void;
};
declare const UnexpectedErrorNotification: {
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
displayName: string;
};
export default UnexpectedErrorNotification;