import React, { forwardRef } from 'react'; import classNames from 'classnames'; import type { InternalPanelProps, PanelProps } from './interface'; export const InternalPanel = forwardRef< HTMLDivElement, React.PropsWithChildren >((props, ref) => { const { prefixCls, className, children, size, style = {} } = props; const panelClassName = classNames( `${prefixCls}-panel`, { [`${prefixCls}-panel-hidden`]: size === 0, }, className, ); const hasSize = size !== undefined; return (
{children}
); }); if (process.env.NODE_ENV !== 'production') { InternalPanel.displayName = 'Panel'; } const Panel: React.FC> = () => null; export default Panel;