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

function IconAgentproComponent(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${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 17 16" {...rest} ref={ref}><path d="M7.307 1.401a6.005 6.005 0 0 1 4.028 1.542l.214.202a6.318 6.318 0 0 1 1.165 1.626l.122.26.001.001a5.981 5.981 0 0 1 0 4.635 6.21 6.21 0 0 1-1.165 1.766h1.429l.008-1.034c0-.108.068-.2.16-.239l.004-.002.073-.017c.07-.008.142.01.202.064h.001l2.51 1.854.009.007-.069.074.069-.073a.415.415 0 0 1 .002.604l-.005.005-.006.005-2.51 1.855a.282.282 0 0 1-.28.044l-.01-.004.049-.088-.05.087c-.075-.043-.149-.12-.15-.233l-.007-1.034H.976a.508.508 0 0 1-.514-.511v-.854c0-.285.228-.51.514-.51h6.38c.533 0 1.058-.112 1.552-.32a4.131 4.131 0 0 0 2.19-2.174 3.955 3.955 0 0 0 .322-1.585 4.074 4.074 0 0 0-1.204-2.885 3.978 3.978 0 0 0-1.307-.873h-.002a4.045 4.045 0 0 0-1.6-.322c-.558 0-1.091.106-1.6.322a3.98 3.98 0 0 0-1.309.873 3.95 3.95 0 0 0-.88 1.298 3.9 3.9 0 0 0-.321 1.487h1.032a.258.258 0 0 1 .207.1l.04.062.002.005.019.077a.26.26 0 0 1-.074.193l.002.001-1.862 2.534-.006.007-.007.007a.448.448 0 0 1-.608 0l-.007-.007-.005-.007L.068 7.692a.27.27 0 0 1-.057-.26l.002-.008.004-.008a.312.312 0 0 1 .095-.115.258.258 0 0 1 .152-.047h1.044a5.847 5.847 0 0 1 1.758-4.11 5.95 5.95 0 0 1 4.241-1.743Zm5.941 13.038.008.008-.008-.008Zm-.04-.098.008.046a.146.146 0 0 1-.007-.046l-.008-1.133.007 1.133ZM.816 13.176a.42.42 0 0 0 .075.023l.085.009a.424.424 0 0 1-.16-.032Zm-.065-.034Zm-.061-.048Zm-.048-.054Zm-.04-.066Zm-.027-.079ZM.57 11.864a.424.424 0 0 0-.008.08v.854a.423.423 0 0 0 .001 0v-.854c0-.027.002-.054.007-.08Zm15.452.71.017-.022a.31.31 0 0 1-.017.022Zm.032-.045Zm.025-.054a.292.292 0 0 0 .01-.032l-.01.032Zm.018-.125-.001-.015.001.015Zm-.008-.054a.122.122 0 0 0-.009-.027l.01.027ZM.592 11.788c-.006.017-.01.034-.015.052a.411.411 0 0 1 .015-.052Zm.035-.067Zm.055-.069Zm.123-.084Zm.086-.027a.418.418 0 0 0 .085-.008l-.085.008Zm12.324-1.185a.154.154 0 0 0-.007.043h.001a.16.16 0 0 1 .006-.043Zm-3.999.721Zm2.924-.376Zm1.089-.376-.01.019.01-.019Zm-10.98-.067Zm-.058-.005Zm.123-.002Zm-.18-.012ZM.121 7.597a.168.168 0 0 0 .027.036l1.862 2.534a.343.343 0 0 0 .001 0L.15 7.633a.168.168 0 0 1-.028-.036Zm2.255 2.636.028-.013c-.01.005-.019.01-.028.013Zm8.682-.98a4.055 4.055 0 0 0 .463-1.9 4.174 4.174 0 0 0-1.233-2.955 4.256 4.256 0 0 0-.002 0 4.172 4.172 0 0 1 1.188 3.582 3.992 3.992 0 0 1-.285 1l-.085.185-.046.089ZM.107 7.56l.009.027-.009-.027Zm4.274.018ZM.107 7.461l-.008.044.001.012c0-.02.003-.038.008-.056l.005-.01-.006.01Zm.057-.073-.017.016c.005-.005.01-.011.017-.016Zm4.18.014Zm-4.08-.048-.052.007a.148.148 0 0 0 .053-.007Zm4.054.026ZM1.43 6.799c-.005.058-.008.116-.012.175.004-.059.007-.117.012-.175Zm.033-.277Zm.037-.223-.02.111.02-.111Zm.073-.341Zm.387-1.093a5.768 5.768 0 0 0-.11.247l-.104.269a5.737 5.737 0 0 0 .214-.516Zm2.091-.167a4.17 4.17 0 0 0 .134-.152l-.134.152ZM2.09 4.613l-.044.085.044-.085Zm.14-.245a5.76 5.76 0 0 0-.001 0Zm.155-.244Zm.126-.18Zm.18-.234c-.031.039-.064.077-.094.116.03-.04.063-.077.094-.116Zm6.256-.207Zm-1.639-.328a4.138 4.138 0 0 1 .001 0Zm-3.962-.157Zm8.059.127c-.043-.041-.085-.082-.13-.122.045.04.087.08.13.122Zm-7.859-.301Zm7.638.1c-.033-.029-.065-.058-.099-.086l.099.085Zm-7.428-.265Zm7.219.09Zm-.206-.155-.129-.089c.043.03.087.059.129.09Zm-6.803-.086Zm.253-.164Zm6.319.092-.134-.083c.044.027.09.054.133.083Zm-.433-.256Zm-5.68.044Zm.895-.405ZM7.307 1.5Zm.05 10.033a3.932 3.932 0 0 0 .204-.006l-.204.006ZM1.413 7.095ZM.74 11.606Zm10.127-2.02.053-.083-.053.084Zm.117-.193.031-.055-.031.055Zm-.664-7.072Z"/></svg>;
}

const IconAgentpro = React.forwardRef(IconAgentproComponent);
export default IconAgentpro;
