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

function IconIntelligentSynthesisComponent(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-Intelligent_synthesis${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 22 22" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M9.37143 1H20.2286C20.2642 1 20.2995 1.00739 20.3324 1.02175C20.3654 1.03611 20.3953 1.05715 20.4205 1.08368C20.4457 1.11021 20.4657 1.14171 20.4793 1.17638C20.493 1.21104 20.5 1.24819 20.5 1.28571V12.7143C20.5 12.7518 20.493 12.789 20.4793 12.8236C20.4657 12.8583 20.4457 12.8898 20.4205 12.9163C20.3953 12.9428 20.3654 12.9639 20.3324 12.9783C20.2995 12.9926 20.2642 13 20.2286 13H13.7143C13.4983 13 13.2912 13.0903 13.1385 13.2511C12.9858 13.4118 12.9 13.6298 12.9 13.8571V20.7143C12.9 20.7518 12.893 20.789 12.8793 20.8236C12.8657 20.8583 12.8457 20.8898 12.8205 20.9163C12.7953 20.9428 12.7654 20.9639 12.7324 20.9783C12.6995 20.9926 12.6642 21 12.6286 21H1.77143C1.73578 21 1.70049 20.9926 1.66756 20.9783C1.63463 20.9639 1.6047 20.9428 1.5795 20.9163C1.5543 20.8898 1.5343 20.8583 1.52066 20.8236C1.50702 20.789 1.5 20.7518 1.5 20.7143V9.28571C1.5 9.24819 1.50702 9.21104 1.52066 9.17638C1.5343 9.14171 1.5543 9.11021 1.5795 9.08368C1.6047 9.05715 1.63463 9.03611 1.66756 9.02175C1.70049 9.00739 1.73578 9 1.77143 9H8.28571C8.50168 9 8.70879 8.90969 8.8615 8.74895C9.01421 8.5882 9.1 8.37018 9.1 8.14286V1.28571C9.1 1.24819 9.10702 1.21104 9.12066 1.17638C9.1343 1.14171 9.15429 1.11021 9.1795 1.08368C9.2047 1.05715 9.23463 1.03611 9.26756 1.02175C9.30049 1.00739 9.33578 1 9.37143 1Z"/></svg>;
}

const IconIntelligentSynthesis = React.forwardRef(IconIntelligentSynthesisComponent);
export default IconIntelligentSynthesis;
