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

function IconAgentImportComponent(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-agent_import${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M11.7979 1C13.1551 1 14.2553 2.10024 14.2553 3.45745V3.78014C14.2553 4.15029 13.9553 4.45035 13.5851 4.45035C13.215 4.45035 12.9149 4.15029 12.9149 3.78014V3.45745C12.9149 2.84053 12.4148 2.34043 11.7979 2.34043H5.31915V10.393C5.31915 10.9027 5.13884 11.396 4.81012 11.7856L3.24585 13.6396C3.31437 13.6527 3.3851 13.6596 3.45745 13.6596H11.7979C12.4148 13.6596 12.9149 13.1595 12.9149 12.5426V12.2199C12.9149 11.8497 13.215 11.5496 13.5851 11.5496C13.9553 11.5496 14.2553 11.8497 14.2553 12.2199V12.5426C14.2553 13.8998 13.1551 15 11.7979 15H3.45745C2.10024 15 1 13.8998 1 12.5426V3.45745C1 2.10024 2.10023 1 3.45745 1H3.97872H4.47372H5.31915H11.7979ZM3.97872 2.34043H3.45745C2.84053 2.34043 2.34043 2.84053 2.34043 3.45745V12.5426C2.34043 12.572 2.34156 12.6012 2.3438 12.6301L3.78564 10.9212C3.91033 10.7734 3.97872 10.5863 3.97872 10.393V2.34043ZM10.7351 9.04255L14.3298 9.04255C14.6999 9.04255 15 8.74249 15 8.37234C15 8.00219 14.6999 7.70213 14.3298 7.70213L10.7351 7.70213L11.825 6.61221C12.0867 6.35048 12.0867 5.92612 11.825 5.66439C11.5632 5.40265 11.1389 5.40265 10.8772 5.66439L8.64311 7.89843C8.38138 8.16016 8.38138 8.58452 8.64311 8.84625L10.8772 11.0803C11.1389 11.342 11.5632 11.342 11.825 11.0803C12.0867 10.8186 12.0867 10.3942 11.825 10.1325L10.7351 9.04255Z" clipRule="evenodd"/></svg>;
}

const IconAgentImport = React.forwardRef(IconAgentImportComponent);
export default IconAgentImport;
