app.tsx 526 B

123456789101112131415161718192021
  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. const FlowGramApp = () => {
  9. const editorProps = useEditorProps();
  10. return (
  11. <FixedLayoutEditorProvider {...editorProps}>
  12. <EditorRenderer />
  13. </FixedLayoutEditorProvider>
  14. );
  15. };
  16. export default FlowGramApp;