import { createSlice } from "@reduxjs/toolkit";

const localVariablesSlice = createSlice({
  name: "localVariables",
  initialState: {
    selectedMaster:"Role",
    regularizationCount:0,
    projectId:1,
  
  },
  reducers: {
    changeMaster: (state, action) => {
        state.selectedMaster = action.payload;
    },
    updateRegularizationCount: (state, action) => {
      state.regularizationCount = action.payload;
    },
    setProjectId: (state, action) => { 
      state.projectId = action.payload;
    },
  },
});

export const { changeMaster ,updateRegularizationCount,setProjectId} = localVariablesSlice.actions;
export default localVariablesSlice.reducer;
