@atlaskit/editor-plugin-custom-autoformat
Version:
Custom autoformat plugin for @atlaskit/editor-core
16 lines • 429 B
JavaScript
import { finish, matched, resolved, setProvider } from './actions';
const reduce = (state, action) => {
switch (action.action) {
case 'matched':
return matched(state, action);
case 'resolved':
return resolved(state, action);
case 'finish':
return finish(state, action);
case 'setProvider':
return setProvider(state, action);
default:
return state;
}
};
export default reduce;