app.tsx 630 B

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import '@flowgram.ai/fixed-layout-editor/index.css';
  6. import { FixedLayoutEditorProvider, EditorRenderer } from '@flowgram.ai/fixed-layout-editor';
  7. import { useEditorProps } from './use-editor-props';
  8. import { Tools } from './tools';
  9. import { Minimap } from './minimap';
  10. const FlowGramApp = () => {
  11. const editorProps = useEditorProps();
  12. return (
  13. <FixedLayoutEditorProvider {...editorProps}>
  14. <EditorRenderer />
  15. <Tools />
  16. <Minimap />
  17. </FixedLayoutEditorProvider>
  18. );
  19. };
  20. export default FlowGramApp;