editor-switch.stories.js 441 B

12345678910111213141516171819
  1. import EditorSwitch from '../js/features/source-editor/components/editor-switch'
  2. import { setupContext } from './fixtures/context'
  3. import { withContextRoot } from './utils/with-context-root'
  4. export default {
  5. title: 'Editor / Switch',
  6. component: EditorSwitch,
  7. }
  8. setupContext()
  9. export const Switcher = () => {
  10. return withContextRoot(<EditorSwitch />, {
  11. editor: {
  12. richText: false,
  13. newSourceEditor: false,
  14. },
  15. })
  16. }