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

const initialState = {
  trigger: 0,
};

const poiReadFromDbTriggerSlice = createSlice({
  name: "poiReadFromDbTrigger",
  initialState,
  reducers: {
    incrementTrigger: (state) => {
      state.trigger += 1;
    },
    resetTrigger: (state) => {
      state.trigger = 0;
    },
  },
});

export const { incrementTrigger, resetTrigger } = poiReadFromDbTriggerSlice.actions;
export default poiReadFromDbTriggerSlice.reducer;
