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

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

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-agent${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'currentColor'} viewBox="0 0 14 14" {...rest} ref={ref}><g fillRule="evenodd" clipRule="evenodd"><path d="M3.80357 8.27441C3.74203 8.0185 3.50652 7.84304 3.2437 7.85728C2.98088 7.87153 2.76572 8.07142 2.73219 8.33248C2.71119 8.49601 2.58296 8.79102 2.32907 9.07301C2.08165 9.34782 1.77271 9.54537 1.45467 9.59907C1.18093 9.64528 0.985568 9.88973 1.00084 10.1669C1.01611 10.4441 1.23713 10.6656 1.5143 10.6815C1.61932 10.6875 1.89717 10.7983 2.19606 11.08C2.48032 11.3479 2.68448 11.6796 2.73461 11.9927C2.77166 12.224 2.95226 12.4059 3.18332 12.4445C3.41438 12.4831 3.64429 12.3698 3.75453 12.1631C3.8123 12.0548 3.86474 11.9232 3.90407 11.8245L3.90407 11.8245L3.90409 11.8244C3.91569 11.7953 3.92616 11.7691 3.93528 11.7471C3.98395 11.63 4.03442 11.5251 4.10936 11.4186C4.25322 11.2141 4.53531 10.9364 5.21222 10.6353C5.40477 10.5497 5.53077 10.3608 5.53587 10.1501C5.54098 9.93946 5.42427 9.74469 5.23609 9.64983L5.21554 9.63948L5.21553 9.63947C4.73592 9.39774 4.44792 9.25257 4.23342 9.064C4.04802 8.90101 3.90345 8.68971 3.80357 8.27441Z" opacity=".8"/><path d="M3.80357 1.95794C3.74203 1.70204 3.50652 1.52657 3.2437 1.54082 2.98088 1.55506 2.76572 1.75495 2.73219 2.01601 2.71119 2.17955 2.58296 2.47455 2.32907 2.75654 2.08165 3.03135 1.77271 3.2289 1.45467 3.2826 1.18093 3.32882.985568 3.57326 1.00084 3.85046 1.01611 4.12766 1.23713 4.34916 1.5143 4.36504 1.61932 4.37105 1.89717 4.48186 2.19606 4.76353 2.48032 5.03141 2.68448 5.36318 2.73461 5.67624 2.77166 5.90755 2.95226 6.08939 3.18332 6.12799 3.41438 6.1666 3.64429 6.05337 3.75453 5.84666 3.8123 5.73832 3.86474 5.60674 3.90407 5.50802L3.90407 5.50801 3.90408 5.508C3.91569 5.47887 3.92615 5.4526 3.93528 5.43064 3.98395 5.31353 4.03442 5.20862 4.10936 5.10211 4.25322 4.89763 4.53531 4.61991 5.21222 4.31886 5.40477 4.23323 5.53077 4.04434 5.53587 3.83366 5.54098 3.62299 5.42427 3.42822 5.23609 3.33337L5.21554 3.32301 5.21553 3.32301C4.73592 3.08127 4.44792 2.93611 4.23342 2.74754 4.04802 2.58454 3.90345 2.37324 3.80357 1.95794zM9.61758 2.47943C9.55604 2.22352 9.32053 2.04806 9.05771 2.0623 8.79489 2.07654 8.57973 2.27643 8.54621 2.53749 8.52231 2.72357 8.41231 3.04909 8.19989 3.46539 7.99365 3.86959 7.71125 4.31977 7.38093 4.74681 7.04986 5.17482 6.68015 5.5673 6.30294 5.86521 5.92089 6.16694 5.56351 6.34612 5.25472 6.39825 4.98098 6.44447 4.78562 6.68891 4.80089 6.96611 4.81615 7.24331 5.03718 7.46482 5.31435 7.48069 5.41021 7.48618 5.64916 7.57463 6.01464 7.84514 6.35567 8.09754 6.73632 8.4553 7.10114 8.87118 7.84923 9.72396 8.43593 10.7112 8.54863 11.4149 8.58567 11.6462 8.76628 11.828 8.99733 11.8666 9.22839 11.9052 9.4583 11.792 9.56854 11.5853 9.65741 11.4186 9.74537 11.2144 9.84415 10.985 10.298 9.93129 10.9805 8.34667 13.0315 7.43451 13.2241 7.34888 13.3501 7.15999 13.3552 6.94932 13.3603 6.73864 13.2436 6.54388 13.0554 6.44902 11.4426 5.63609 10.0176 4.14283 9.61758 2.47943z"/></g></svg>;
}

const IconAgent = React.forwardRef(IconAgentComponent);
export default IconAgent;
