UNPKG

connect-transfer-react-native-sdk

Version:

Connect Transfer React Native SDK for Mastercard Open Banking Connect

25 lines (24 loc) 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.errorTranslation = exports.default = void 0; var _toolkit = require("@reduxjs/toolkit"); var _routes = require("../../services/api/routes"); var _constants = require("../../constants"); var _asyncHelper = require("./asyncHelper"); const initialState = { loading: false, data: null, error: null }; const errorTranslation = exports.errorTranslation = (0, _routes.createApiActions)(_constants.API_KEYS.errorTranslation); const errorTranslationSlice = (0, _toolkit.createSlice)({ name: 'errorTranslation', initialState, extraReducers: builder => { (0, _asyncHelper.handleAsyncActions)(builder, errorTranslation); } }); var _default = exports.default = errorTranslationSlice.reducer; //# sourceMappingURL=errorTranslationSlice.js.map