UNPKG

@commercetools-frontend/react-notifications

Version:
13 lines (12 loc) 796 B
import { ElementType, ReactNode } from 'react'; import type { TAppNotificationGlobal, TAppNotificationPage, TAppNotificationSide } from '@commercetools-frontend/constants'; export type Props = { mapNotificationToComponent: (notification: TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide) => ElementType | null; children: ReactNode; }; declare function NotificationProviderForCustomComponent(props: Props): import("@emotion/react/jsx-runtime").JSX.Element; declare namespace NotificationProviderForCustomComponent { var displayName: string; } export declare const useCustomNotificationComponent: () => (notification: TAppNotificationGlobal | TAppNotificationPage | TAppNotificationSide) => ElementType | null; export default NotificationProviderForCustomComponent;