import { createSlice } from "@reduxjs/toolkit"
import {
  addControllerItemReducer,
  addResourceRulesInController,

  setResourceRulesReducer,
  updateControllerListReducer,
  
  setResourcePagesReducer
} from "@/redux/currentApp/executionController/controllerReducer"
import { ControllerInitialState } from "@/redux/currentApp/executionController/controllerState"

const ControllerSlice = createSlice({
  name: "Controller",
  initialState: ControllerInitialState,
  reducers: {
    updateControllerListReducer,
    addControllerItemReducer,
  
    setResourceRulesReducer,
    addResourceRulesInController,
 
    setResourcePagesReducer
  },
})

export default ControllerSlice.reducer
export const ControllerActions = ControllerSlice.actions
