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

function IconModelOptimizationComponent(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-model_optimization${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 20 20" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path opacity=".5" fillRule="evenodd" clipRule="evenodd" d="M13.228 6.04885V4.08301H6.7883V6.04831L3.95552 11.7368L3.95249 11.743L2.14455 15.3735C1.6342 16.3984 2.07516 17.6313 3.12949 18.1274C3.41758 18.263 3.73351 18.3334 4.0536 18.3334H15.947C17.1184 18.3334 18.0679 17.4104 18.0679 16.2718C18.0679 15.9616 17.9959 15.6554 17.8573 15.376L16.0515 11.7376L16.0441 11.723L13.228 6.04885ZM9.63458 10.9915C11.0053 9.88114 12.3071 10.0691 13.4306 10.3208L15.9317 15.5454C16.1436 15.9879 15.821 16.4999 15.3304 16.4999H4.66666C4.17682 16.4999 3.85424 15.9894 4.0646 15.547L6.08856 11.2906C6.32304 11.3943 6.58302 11.4627 6.90647 11.5396C7.74009 11.7377 8.73079 11.7236 9.63458 10.9915Z"/><path fillRule="evenodd" clipRule="evenodd" d="M9.63458 10.9913C11.0053 9.88097 12.3071 10.0689 13.4306 10.3207L15.9317 15.5452C16.1436 15.9877 15.821 16.4998 15.3304 16.4998H4.66666C4.17682 16.4998 3.85424 15.9892 4.06459 15.5468L6.08856 11.2904C6.32304 11.3941 6.58302 11.4625 6.90647 11.5394C7.74009 11.7376 8.73079 11.7234 9.63458 10.9913ZM12.0833 14.9999C12.7737 14.9999 13.3333 14.4403 13.3333 13.7499C13.3333 13.0595 12.7737 12.4999 12.0833 12.4999C11.393 12.4999 10.8333 13.0595 10.8333 13.7499C10.8333 14.4403 11.393 14.9999 12.0833 14.9999Z"/><path d="M6.05615 2.23548C5.94903 1.96218 6.15054 1.66675 6.44408 1.66675H13.5676C13.8612 1.66675 14.0627 1.96218 13.9556 2.23548L13.2293 4.0882H6.78239L6.05615 2.23548Z"/></svg>;
}

const IconModelOptimization = React.forwardRef(IconModelOptimizationComponent);
export default IconModelOptimization;
