import { configureStore } from "@reduxjs/toolkit";
import { rootReducer } from "./reducer";
export const createStore = (initialState) => configureStore({
    reducer: rootReducer,
    preloadedState: { spec: initialState },
    middleware: (getDefaultMiddleware) => getDefaultMiddleware({
        serializableCheck: {
            ignoredActions: [
                "spec/setSpec",
                "spec/updateLayerProp",
                "spec/updateVisibleLayers",
                "spec/updateDrawingMode",
            ],
        },
    }),
});
//# sourceMappingURL=store.js.map