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

interface WorkflowState {
  sketchCount: number;
  videoCount: number;
}

const initialState: WorkflowState = {
  sketchCount: 0,
  videoCount: 0,
};

export const workflowSlice = createSlice({
  name: 'workflow',
  initialState,
  reducers: {
    setSketchCount: (state, action: PayloadAction<number>) => {
      state.sketchCount = action.payload;
    },
    setVideoCount: (state, action: PayloadAction<number>) => {
      state.videoCount = action.payload;
    },
  },
});

export const { setSketchCount, setVideoCount } = workflowSlice.actions;

export default workflowSlice.reducer; 