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

function IconAgentproReportDownloadComponent(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-agentpro-report-download${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path d="M4.687 13.326a.32.32 0 0 1 .32.32v1.763h9.984v-1.763a.32.32 0 0 1 .32-.32h1.043l.064.007a.32.32 0 0 1 .256.313v2.605l-.004.086a.842.842 0 0 1-.838.755H4.166a.841.841 0 0 1-.842-.841v-2.605a.32.32 0 0 1 .32-.32h1.043ZM10.52 2.91l.064.006a.32.32 0 0 1 .256.314v6.728l.342-.34 1.885-1.887a.321.321 0 0 1 .454 0l.737.738a.32.32 0 0 1 0 .453l-3.906 3.906a.32.32 0 0 1-.454 0L5.992 8.921a.32.32 0 0 1 0-.453l.737-.738a.321.321 0 0 1 .454 0l1.973 1.976.001-6.477a.32.32 0 0 1 .32-.32h1.043Z"/></svg>;
}

const IconAgentproReportDownload = React.forwardRef(IconAgentproReportDownloadComponent);
export default IconAgentproReportDownload;
