panel-layer.tsx 829 B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { FloatPanel } from './float-panel';
  6. import { panelLayer, leftArea, rightArea, mainArea, bottomArea, globalCSS } from './css';
  7. export const PanelLayer: React.FC<React.PropsWithChildren> = ({ children }) => (
  8. <div style={panelLayer}>
  9. <style dangerouslySetInnerHTML={{ __html: globalCSS }} />
  10. <div className="gedit-flow-panel-left-area" style={leftArea}>
  11. <div className="gedit-flow-panel-main-area" style={mainArea}>
  12. {children}
  13. </div>
  14. <div className="gedit-flow-panel-bottom-area" style={bottomArea}>
  15. <FloatPanel area="bottom" />
  16. </div>
  17. </div>
  18. <div className="gedit-flow-panel-right-area" style={rightArea}>
  19. <FloatPanel area="right" />
  20. </div>
  21. </div>
  22. );