"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useUIKitStore = exports.useUIKitSelector = exports.useUIKitDispatch = exports.store = exports.AmityUIKitReduxContext = void 0;
var _toolkit = require("@reduxjs/toolkit");
var _globalfeedSlice = _interopRequireDefault(require("../slices/globalfeedSlice"));
var _feedSlice = _interopRequireDefault(require("../slices/feedSlice"));
var _postDetailSlice = _interopRequireDefault(require("../slices/postDetailSlice"));
var _uiSlice = _interopRequireDefault(require("../slices/uiSlice"));
var _bottomSheetSlice = _interopRequireDefault(require("../slices/bottomSheetSlice"));
var _toastSlice = _interopRequireDefault(require("../slices/toastSlice"));
var _react = require("react");
var _reactRedux = require("react-redux");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const AmityUIKitReduxContext = exports.AmityUIKitReduxContext = /*#__PURE__*/(0, _react.createContext)(null);
const useUIKitStore = exports.useUIKitStore = (0, _reactRedux.createStoreHook)(AmityUIKitReduxContext);
const useUIKitDispatch = exports.useUIKitDispatch = (0, _reactRedux.createDispatchHook)(AmityUIKitReduxContext);
const useUIKitSelector = exports.useUIKitSelector = (0, _reactRedux.createSelectorHook)(AmityUIKitReduxContext);
const store = exports.store = (0, _toolkit.configureStore)({
  reducer: {
    globalFeed: _globalfeedSlice.default.reducer,
    postDetail: _postDetailSlice.default.reducer,
    feed: _feedSlice.default.reducer,
    ui: _uiSlice.default.reducer,
    bottomSheet: _bottomSheetSlice.default.reducer,
    toast: _toastSlice.default.reducer
  },
  middleware: getDefaultMiddleware => getDefaultMiddleware({
    serializableCheck: false
  })
});
//# sourceMappingURL=index.js.map