@commercetools-frontend/react-notifications
Version:
React bindings for @commercetools-frontend/notifications
16 lines (15 loc) • 547 B
TypeScript
import { SyntheticEvent } from 'react';
import type { TAppNotification, TAppNotificationDomain, TAppNotificationKindSide } from '@commercetools-frontend/constants';
type Props = {
notification: TAppNotification<{
domain: TAppNotificationDomain;
kind: TAppNotificationKindSide;
text: string;
}>;
dismiss: (event: SyntheticEvent) => void;
};
declare const GenericNotification: {
(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
displayName: string;
};
export default GenericNotification;