UNPKG

@commercetools-frontend/actions-global

Version:
16 lines (15 loc) 808 B
import type { TAppNotificationValuesUnexpectedError } from '@commercetools-frontend/constants'; /** * Dispatch an unexpected error notification. * * @example * const showUnexpectedErrorNotification = useShowUnexpectedErrorNotification(); * showUnexpectedErrorNotification({ errors }); */ export default function useShowUnexpectedErrorNotification(): (options: TAppNotificationValuesUnexpectedError) => import("@commercetools-frontend/notifications").TAddNotificationAction<import("@commercetools-frontend/constants").TAppNotificationOfDomain & { kind: import("@commercetools-frontend/constants").TAppNotificationKindPage; } & { id: number; text?: undefined; values?: TAppNotificationValuesUnexpectedError | undefined; } & import("@commercetools-frontend/notifications").TNotification>;