/* eslint-disable react/no-array-index-key */ import * as React from 'react'; import classNames from 'classnames'; import FloatButton, { floatButtonPrefixCls } from './FloatButton'; import FloatButtonGroup from './FloatButtonGroup'; import BackTop from './BackTop'; import type { FloatButtonProps, FloatButtonGroupProps } from './interface'; import { ConfigContext } from '../config-provider'; 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 ? : ; function PurePanel({ className, items, ...props }: PurePanelProps) { 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 React.memo(PurePanel);