import { createSlice, createAsyncThunk } from "@reduxjs/toolkit" export const kpdlSlice = createSlice({ name: "kpdl", initialState: { selectedOpsi: null }, reducers: { setSelectedOpsi: (state, action) => { state.selectedOpsi = action.payload } } }) export const { setSelectedOpsi } = kpdlSlice.actions export default kpdlSlice.reducer