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

function IconAgentThinkingLanguageComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-agent_thinking-language${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 18 18" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#B44BFF'} d="M5.732 1.444a.85.85 0 0 1 1.075.538l.375 1.125c.018.056.03.112.037.169H10.5a.85.85 0 1 1 0 1.699h-.847a15.4 15.4 0 0 1-.405 1.21C8.863 7.19 8.24 8.488 7.307 9.462c.638.41 1.355.785 1.987 1.086.43.205.811.371 1.083.485.136.057.245.1.318.13l.083.034.021.007.005.002.04.018 1.128-2.566a.85.85 0 0 1 1.556 0l2.138 4.864.858 1.875a.851.851 0 0 1-1.547.707l-.63-1.38h-3.194l-.63 1.38a.851.851 0 0 1-1.546-.707l.857-1.875.325-.742-.094-.038a27.436 27.436 0 0 1-1.5-.66c-.776-.368-1.74-.873-2.574-1.455-.593.461-1.197.87-1.72 1.195a24.942 24.942 0 0 1-1.505.869l-.097.05-.026.013-.007.004-.003.001a.85.85 0 1 1-.765-1.518l.005-.002a.084.084 0 0 1 .02-.011l.083-.042.316-.171c.271-.15.65-.367 1.08-.635.419-.262.876-.569 1.324-.903a8.657 8.657 0 0 1-1.16-1.758 10.274 10.274 0 0 1-.562-1.354 6.085 6.085 0 0 1-.03-.091l-.007-.027-.002-.008-.001-.003-.001-.001v-.001a.85.85 0 0 1 1.634-.47v.003l.004.013.02.062a8.586 8.586 0 0 0 .464 1.113c.235.466.546.973.934 1.42.018-.018.038-.034.055-.052.718-.732 1.255-1.802 1.617-2.748.082-.212.152-.415.213-.6H2.25a.85.85 0 1 1 0-1.7h3.196l-.252-.756a.85.85 0 0 1 .538-1.075Zm6.177 11.582h1.682l-.84-1.913-.842 1.913Z"/></svg>;
}

const IconAgentThinkingLanguage = React.forwardRef(IconAgentThinkingLanguageComponent);
export default IconAgentThinkingLanguage;
