// redux/slices/readPoiMarkersStoreSlice.js
import { createSlice } from "@reduxjs/toolkit";

const initialState = {
  poiMarkers: [],
};

const readPoiMarkersStoreSlice = createSlice({
  name: "readPoiMarkersStore",
  initialState,
  reducers: {
    setPoiMarkers: (state, action) => {
      state.poiMarkers = action.payload;
    },
    clearPoiMarkers: (state) => {
      state.poiMarkers = [];
    },
  },
});

export const { setPoiMarkers, clearPoiMarkers } = readPoiMarkersStoreSlice.actions;
export default readPoiMarkersStoreSlice.reducer;
