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

function IconResultEvaluationComponent(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-result_evaluation${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 16 16" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M8 1.77777C9.75814 1.77777 11.1835 3.20309 11.1835 4.96123C11.1835 5.93422 10.747 6.80533 10.0591 7.38935L11.222 9.88113H13.4987C13.6522 9.88113 13.7994 9.94211 13.908 10.0507C14.0165 10.1592 14.0775 10.3064 14.0775 10.4599V13.6434C14.0775 13.7969 14.0165 13.9441 13.908 14.0527C13.7994 14.1612 13.6522 14.2222 13.4987 14.2222H2.5013C2.34779 14.2222 2.20056 14.1612 2.09202 14.0527C1.98347 13.9441 1.92249 13.7969 1.92249 13.6434V10.4599C1.92249 10.3064 1.98347 10.1592 2.09202 10.0507C2.20056 9.94211 2.34779 9.88113 2.5013 9.88113H4.77776L5.94088 7.38935C5.58812 7.09078 5.30476 6.71883 5.11057 6.29945C4.91638 5.88008 4.81604 5.42339 4.81654 4.96123C4.81654 3.20309 6.24187 1.77777 8 1.77777ZM12.9199 11.0388H3.08011V13.0646H12.9199V11.0388ZM8 2.93539C7.46272 2.93539 6.94744 3.14883 6.56752 3.52875C6.1876 3.90867 5.97416 4.42395 5.97416 4.96123C5.97416 5.53744 6.21466 6.07226 6.62967 6.45341L6.69015 6.50666C6.88354 6.67087 7.01763 6.89406 7.0718 7.1419C7.12597 7.38975 7.09722 7.64853 6.98998 7.87844L6.0552 9.88113H9.94481L9.01003 7.87844C8.90732 7.65819 8.87653 7.41119 8.92204 7.17246C8.96754 6.93373 9.08702 6.71537 9.26355 6.54833L9.30985 6.50666C9.53463 6.31682 9.71517 6.08013 9.83885 5.81317C9.96253 5.54622 10.0264 5.25545 10.0258 4.96123C10.0258 4.42395 9.81241 3.90867 9.43249 3.52875C9.05257 3.14883 8.53729 2.93539 8 2.93539Z"/></svg>;
}

const IconResultEvaluation = React.forwardRef(IconResultEvaluationComponent);
export default IconResultEvaluation;
