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

const initialState = {
  trigger: 0,
};

const zoomTriggerSlice = createSlice({
  name: "zoomTrigger",
  initialState,
  reducers: {
    incrementZoomTrigger: (state) => {
      state.trigger += 1;
    },
    resetZoomTrigger: (state) => {
      state.trigger = 0;
    },
  },
});

export const { incrementZoomTrigger, resetZoomTrigger } = zoomTriggerSlice.actions;
export default zoomTriggerSlice.reducer;
