export const ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE =
  'ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE';
export interface ErrorUnhandledErrorOccurredAction {
  readonly type: typeof ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE;
}

export const ERROR_ERROR_STATUS_RESET_ACTION_TYPE =
  'ERROR_ERROR_STATUS_RESET_ACTION_TYPE';
export interface ErrorErrorStatusResetAction {
  readonly type: typeof ERROR_ERROR_STATUS_RESET_ACTION_TYPE;
}

export type ErrorAction =
  | ErrorUnhandledErrorOccurredAction
  | ErrorErrorStatusResetAction;

export function errorReactToUnhandledError(): ErrorUnhandledErrorOccurredAction {
  return {
    type: ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE,
  };
}

export function errorResetErrorStatus(): ErrorErrorStatusResetAction {
  return {
    type: ERROR_ERROR_STATUS_RESET_ACTION_TYPE,
  };
}
