/* eslint-disable react/no-array-index-key */ import classNames from 'classnames'; import * as React from 'react'; import { ConfigContext } from '../config-provider'; import BackTop from './BackTop'; import FloatButton, { floatButtonPrefixCls } from './FloatButton'; import FloatButtonGroup from './FloatButtonGroup'; import type { FloatButtonGroupProps, FloatButtonProps } from './interface'; export interface PureFloatButtonProps extends Omit { backTop?: boolean; } export interface PurePanelProps extends PureFloatButtonProps, Omit { /** Convert to FloatGroup when configured */ items?: PureFloatButtonProps[]; } const PureFloatButton: React.FC = ({ backTop, ...props }) => backTop ? : ; /** @private Internal Component. Do not use in your production. */ const PurePanel: React.FC = ({ className, items, ...props }) => { const { prefixCls: customizePrefixCls } = props; const { getPrefixCls } = React.useContext(ConfigContext); const prefixCls = getPrefixCls(floatButtonPrefixCls, customizePrefixCls); const pureCls = `${prefixCls}-pure`; if (items) { return ( {items.map((item, index) => ( ))} ); } return ; }; export default PurePanel;