/** * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates * SPDX-License-Identifier: MIT */ import clsx from 'clsx'; import { useGlobalCSS } from '../../hooks/use-global-css'; import { PanelArea } from './panel'; import { globalCSS } from './css'; export type PanelLayerProps = React.PropsWithChildren<{ /** 模式:悬浮|挤压 */ mode?: 'floating' | 'docked'; className?: string; style?: React.CSSProperties; }>; export const PanelLayer: React.FC = ({ mode = 'floating', className, style, children, }) => { useGlobalCSS({ cssText: globalCSS, id: 'flow-panel-layer-css', }); return (
{children}
); };