import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconClipboardFillComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-clipboard-fill${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><path fillRule="evenodd" d="M17.5 1.5a1 1 0 0 1 1 1v1H20a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h1.5v-1a1 1 0 0 1 1-1h11Zm-3 13a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7A.5.5 0 0 1 7 16v-1a.5.5 0 0 1 .5-.5h7Zm2-4a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9A.5.5 0 0 1 7 12v-1a.5.5 0 0 1 .5-.5h9Zm0-7h-9v2h9v-2Z" clipRule="evenodd"/></svg>;
}

const IconClipboardFill = React.forwardRef(IconClipboardFillComponent);
export default IconClipboardFill;
