import { configureStore } from '@reduxjs/toolkit';
import globalFeedSlice from '../slices/globalfeedSlice';
import feedSlice from '../slices/feedSlice';
import postDetailSlice from '../slices/postDetailSlice';
import uiSlice from '../slices/uiSlice';
import bottomSheetSlice from '../slices/bottomSheetSlice';
import toastSlice from '../slices/toastSlice';
import { createContext } from 'react';
import { createStoreHook, createDispatchHook, createSelectorHook } from 'react-redux';
export const AmityUIKitReduxContext = /*#__PURE__*/createContext(null);
export const useUIKitStore = createStoreHook(AmityUIKitReduxContext);
export const useUIKitDispatch = createDispatchHook(AmityUIKitReduxContext);
export const useUIKitSelector = createSelectorHook(AmityUIKitReduxContext);
export const store = configureStore({
  reducer: {
    globalFeed: globalFeedSlice.reducer,
    postDetail: postDetailSlice.reducer,
    feed: feedSlice.reducer,
    ui: uiSlice.reducer,
    bottomSheet: bottomSheetSlice.reducer,
    toast: toastSlice.reducer
  },
  middleware: getDefaultMiddleware => getDefaultMiddleware({
    serializableCheck: false
  })
});
//# sourceMappingURL=index.js.map