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

const stateSlice = createSlice({
  name: 'accountDetailForm/state',
  initialState: {
    currentStep: 0,
  },
  reducers: {
    setCurrentStep: (state, action) => {
      state.currentStep = action.payload;
    },
    clearCurrentStep: (state) => {
      state.currentStep = 0;
    }

  },
});

export const { setCurrentStep ,clearCurrentStep} = stateSlice.actions;

export default stateSlice.reducer;
