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

function IconAgentSendComponent(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_send${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 20 20" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M10.0374 1.83496C10.0618 1.83558 10.0863 1.83608 10.1106 1.83789C10.1342 1.83962 10.1577 1.84192 10.181 1.84473C10.2091 1.84815 10.237 1.85339 10.2649 1.8584C10.2819 1.86143 10.299 1.86359 10.3157 1.86719C10.3446 1.87338 10.3732 1.88076 10.4017 1.88867C10.42 1.89376 10.4383 1.89854 10.4563 1.9043C10.492 1.91566 10.5269 1.92927 10.5618 1.94336C10.5696 1.94649 10.5776 1.94889 10.5853 1.95215C10.7159 2.0075 10.8406 2.08174 10.9544 2.17578C10.9914 2.20632 11.027 2.23857 11.0608 2.27246L17.7269 8.93945L17.8304 9.05273C18.3109 9.64177 18.2757 10.5113 17.7269 11.0605C17.1777 11.6094 16.3091 11.6435 15.72 11.1631L15.6058 11.0605L11.4993 6.9541V16.666C11.4993 17.4944 10.8277 18.166 9.99932 18.166C9.17103 18.1659 8.49932 17.4943 8.49932 16.666V6.9541L4.39385 11.0605C3.80811 11.6461 2.8585 11.6461 2.27275 11.0605C1.68702 10.4748 1.68713 9.52525 2.27275 8.93945L8.929 2.28223C8.96627 2.24427 9.00509 2.20767 9.04619 2.17383L9.05303 2.16895C9.2035 2.04632 9.37211 1.95682 9.54912 1.90137C9.56062 1.89775 9.57266 1.89592 9.58428 1.89258C9.61859 1.88273 9.65298 1.87356 9.68779 1.86621C9.69914 1.86381 9.71053 1.86152 9.72197 1.85938C9.757 1.85282 9.79211 1.84682 9.82744 1.84277C9.8494 1.84026 9.87161 1.83944 9.89385 1.83789C9.9163 1.83632 9.93874 1.83552 9.96123 1.83496C9.9739 1.83464 9.98657 1.83301 9.99932 1.83301C10.012 1.83301 10.0248 1.83465 10.0374 1.83496Z"/></svg>;
}

const IconAgentSend = React.forwardRef(IconAgentSendComponent);
export default IconAgentSend;
