mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
20 lines
439 B
JavaScript
20 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,
|
||
|
},
|
||
|
})
|
||
|
}
|