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

function IconAiTestComponent(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-ai_test${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 40 40" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M27.5175 4.34766C28.0695 4.3479 28.5173 4.79573 28.5175 5.34766V6.47852C28.5175 7.03064 28.0696 7.47827 27.5175 7.47852H25.8369V12.7539L35.2207 29.959C36.5718 32.4361 34.975 35.6523 32.1533 35.6523H8.3681C5.54644 35.6523 3.55799 32.4361 4.90911 29.959L7.96771 24.3506C8.65022 23.0997 10.1303 22.6987 11.3251 23.1602C11.3987 23.1886 11.4707 23.216 11.541 23.2432C13.1468 23.8638 13.9117 24.1601 14.6787 24.2012C15.3917 24.2393 16.2306 24.0486 17.9326 23.209C19.7994 22.288 21.4225 21.8124 23.0107 21.8457C24.2917 21.8726 25.4471 22.2291 26.5869 22.792C27.0717 23.0317 27.2367 23.6306 26.9795 24.1064L26.5527 24.8975C26.2846 25.3932 25.6624 25.562 25.1543 25.3184C24.3587 24.937 23.6647 24.7366 22.9531 24.7217C21.9706 24.7011 20.7991 24.9864 19.1445 25.8027C17.3253 26.7002 15.9656 27.1498 14.5331 27.0732C13.3095 27.0078 12.3115 26.7172 10.9374 26.1826C9.77676 25.731 7.85849 30.7995 7.54193 31.3594C7.18663 32.0111 7.54407 32.5215 8.17279 32.5215H31.958C32.7003 32.5213 33 31.8471 32.6445 31.1953L23.124 14.04C22.9139 13.6549 22.8046 13.2228 22.8046 12.7842V7.47852H17.3261V12.7842C17.3261 13.2227 17.2158 13.6541 17.0058 14.0391L13.8984 20.2109C13.6365 20.7306 12.9877 20.9174 12.4892 20.6172L11.4394 19.9854C10.9805 19.709 10.8206 19.1197 11.0771 18.6494L14.2939 12.7539V7.47852H12.6132C12.0609 7.47852 11.6132 7.03078 11.6132 6.47852V5.34766C11.6135 4.79558 12.0611 4.34766 12.6132 4.34766H27.5175ZM32.1836 8.23047C32.3927 7.42304 33.5379 7.42022 33.7509 8.22656L33.9629 9.02734C34.2605 10.1553 35.1415 11.0363 36.2695 11.334L37.0703 11.5459C37.8768 11.7589 37.8739 12.9042 37.0664 13.1133L36.2793 13.3174C35.1446 13.6111 34.2571 14.4946 33.958 15.6279L33.7509 16.4111C33.538 17.2176 32.3926 17.2147 32.1836 16.4072L31.9843 15.6377C31.6892 14.4979 30.7989 13.6076 29.6591 13.3125L28.8896 13.1133C28.0822 12.9042 28.0794 11.7589 28.8857 11.5459L29.6689 11.3389C30.8022 11.0398 31.6858 10.1523 31.9795 9.01758L32.1836 8.23047Z"/><defs><linearGradient id="svg_dd04af4af9__paint0_linear_2418_15291" x1="4.476" y1="35.652" x2="37.674" y2="35.652" gradientUnits="userSpaceOnUse"><stop offset=".01" stopColor="#3B91FF"/><stop offset=".4" stopColor="#0D5EFF"/><stop offset=".995" stopColor="#C069FF"/></linearGradient></defs></svg>;
}

const IconAiTest = React.forwardRef(IconAiTestComponent);
export default IconAiTest;
