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

function IconPromptHallucinationCorrectionComponent(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-prompt_hallucination-correction${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path d="M8.666 9.4a.6.6 0 0 1 .6.6v2.667a.6.6 0 0 1-.6.6H1.333a.6.6 0 0 1-.6-.6V10a.6.6 0 0 1 .6-.6h7.333Zm5.549.204a.6.6 0 0 1 .903.792l-2.333 2.665a.602.602 0 0 1-.876.03l-1.333-1.333a.6.6 0 0 1 .848-.849l.88.88 1.91-2.185ZM1.933 12.066h6.133V10.6H1.933v1.466Zm6.733-9.333a.6.6 0 0 1 .6.6V6a.6.6 0 0 1-.6.6H1.333a.6.6 0 0 1-.6-.6V3.333a.6.6 0 0 1 .6-.6h7.333Zm4.91.176a.6.6 0 0 1 .848.848l-.91.909.91.91a.6.6 0 0 1-.849.848l-.909-.91-.91.91a.6.6 0 1 1-.847-.849l.908-.909-.908-.91a.6.6 0 1 1 .848-.847l.909.908.91-.908ZM1.932 5.4h6.133V3.933H1.933v1.466Z"/></svg>;
}

const IconPromptHallucinationCorrection = React.forwardRef(IconPromptHallucinationCorrectionComponent);
export default IconPromptHallucinationCorrection;
