@commercetools-frontend/actions-global
Version:
Global redux actions for a MC application
16 lines (15 loc) • 808 B
TypeScript
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>;