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

function IconProcessEvaluationComponent(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-Process_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 d="M2.88541 4.95867C2.33608 5.996 2.00008 7.17867 2.00008 7.83867V8.50533H0.666748V7.83867C0.666748 6.88133 1.10141 5.47867 1.70675 4.33467C2.01475 3.754 2.38875 3.19667 2.81341 2.77467C3.22675 2.36467 3.77208 2 4.41475 2C5.04008 2 5.57142 2.32667 5.98408 2.71933C6.40208 3.11667 6.76675 3.646 7.07408 4.204C7.68875 5.32133 8.14008 6.684 8.32342 7.72267L8.32475 7.73133L8.32608 7.74C8.44142 8.516 8.86208 9.81867 9.44208 10.922C9.73141 11.4727 10.0421 11.938 10.3467 12.2553C10.6667 12.5893 10.8874 12.6667 11.0001 12.6667C11.1241 12.6667 11.3421 12.59 11.6401 12.2827C11.9287 11.986 12.2194 11.5473 12.4801 11.0187C13.0054 9.952 13.3334 8.68 13.3334 7.83867V7.172H14.6667V7.83867C14.6667 8.93667 14.2654 10.412 13.6761 11.608C13.3787 12.2107 13.0154 12.7813 12.5967 13.212C12.1887 13.632 11.6467 14 11.0001 14C10.3427 14 9.79341 13.606 9.38408 13.1787C8.95941 12.7353 8.58141 12.1507 8.26208 11.5427C7.62675 10.334 7.15141 8.894 7.00875 7.946C6.84875 7.046 6.44542 5.82733 5.90608 4.846C5.63542 4.35467 5.34741 3.954 5.06475 3.68533C4.77675 3.41067 4.56008 3.33333 4.41475 3.33333C4.28675 3.33333 4.06208 3.41333 3.75275 3.72C3.45541 4.016 3.15541 4.448 2.88541 4.95867ZM2.66675 7.33333H6.00008V8.66667H2.66675V7.33333ZM9.33341 7.33333H12.6667V8.66667H9.33341V7.33333Z"/></svg>;
}

const IconProcessEvaluation = React.forwardRef(IconProcessEvaluationComponent);
export default IconProcessEvaluation;
