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

function IconMenuEvaluationSetComponent(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-menu-evaluation-set${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path d="M16.832 1.87 3.202 1.5a.923.923 0 0 0-.237.05.906.906 0 0 0-.143.029.981.981 0 0 0-.316.212H2.5a1.032 1.032 0 0 0-.299.729v14.148c0 .272.107.533.294.724a.99.99 0 0 0 .707.3l10.074.808a.985.985 0 0 0 .708-.298 1.04 1.04 0 0 0 .294-.726V6.6a1.04 1.04 0 0 0-.294-.725.985.985 0 0 0-.708-.299L5.256 5.2a.815.815 0 0 1-.772-.824c0-.443.341-.807.772-.824l9.493.364h.61a.48.48 0 0 1 .473.486v11.293c0 .568.448 1.029 1.001 1.029.553 0 1.001-.461 1.001-1.029V2.899c-.001-.568-.45-1.028-1.002-1.029Z"/></svg>;
}

const IconMenuEvaluationSet = React.forwardRef(IconMenuEvaluationSetComponent);
export default IconMenuEvaluationSet;
