import React, { memo } from 'react'; import FileTextOutlined from '@ant-design/icons/FileTextOutlined'; import classNames from 'classnames'; import type { FloatButtonContentProps } from './interface'; const FloatButtonContent: React.FC = props => { const { icon, description, prefixCls, className } = props; const defaultElement = (
); return (
{icon || description ? ( <> {icon &&
{icon}
} {description &&
{description}
} ) : ( defaultElement )}
); }; export default memo(FloatButtonContent);