import { Command } from "../types"; import { setPluginState } from "./EditablePlugin"; export const setEditable: (editable: boolean) => Command = editable => (state, dispatch) => { setPluginState({ state, dispatch }, { editable }); return true; };