@veecode-platform/plugin-kong-service-manager
Version:
15 lines (13 loc) • 375 B
JavaScript
const initialSelectedPluginState = null;
const SelectedPluginReducer = (state, action) => {
switch (action.type) {
case "ADD_SELECTED_PLUGIN":
return action.payload;
case "REMOVE_SELECTED_PLUGIN":
return null;
default:
return state;
}
};
export { SelectedPluginReducer, initialSelectedPluginState };
//# sourceMappingURL=reducer.esm.js.map