overleaf/services/web/frontend/stories/editor-switch.stories.js
Brian Gough fde4f72adf Merge pull request #6779 from overleaf/ae-cm-editor-switch
[web] [cm6] Add a three-way switch for editor choice

GitOrigin-RevId: fff788ddad8d10488e8446de7f1503702da0985f
2022-02-22 09:03:05 +00:00

19 lines
439 B
JavaScript

import EditorSwitch from '../js/features/source-editor/components/editor-switch'
import { setupContext } from './fixtures/context'
import { withContextRoot } from './utils/with-context-root'
export default {
title: 'Editor Switch',
component: EditorSwitch,
}
setupContext()
export const Switcher = () => {
return withContextRoot(<EditorSwitch />, {
editor: {
richText: false,
newSourceEditor: false,
},
})
}