index.tsx 657 B

12345678910111213141516171819202122232425
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import '@flowgram.ai/free-layout-editor/index.css';
  6. import { FreeLayoutEditorProvider, EditorRenderer } from '@flowgram.ai/free-layout-editor';
  7. import './index.less';
  8. import { useEditorProps } from './use-editor-props';
  9. import { FlowGramLogoMask } from './musk';
  10. export const FlowGramLogo = () => {
  11. const editorProps = useEditorProps();
  12. return (
  13. <div className="flowgram-logo-container">
  14. <FlowGramLogoMask />
  15. <FreeLayoutEditorProvider {...editorProps}>
  16. <EditorRenderer />
  17. </FreeLayoutEditorProvider>
  18. </div>
  19. );
  20. };