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

function IconPromptKnowledgeAnswerComponent(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_knowledge-answer${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="M7.4 5a2.067 2.067 0 0 0-2.066-2.067H2.266V11.4H6c.516 0 .996.152 1.4.41V5Zm1.2 9-.012.12A.6.6 0 0 1 7.4 14 1.4 1.4 0 0 0 6 12.6H1.667a.6.6 0 0 1-.6-.6V2.333a.6.6 0 0 1 .6-.6h3.667A3.267 3.267 0 0 1 8.6 5v9Z"/><path d="M7.4 14V5a3.267 3.267 0 0 1 3.267-3.266h3.666a.6.6 0 0 1 .6.6V12a.6.6 0 0 1-.6.6H10A1.4 1.4 0 0 0 8.6 14l-.012.12a.6.6 0 0 1-1.176 0L7.4 14Zm1.2-2.19c.404-.258.884-.41 1.4-.41h3.733V2.933h-3.066A2.068 2.068 0 0 0 8.6 5v6.81Z"/></svg>;
}

const IconPromptKnowledgeAnswer = React.forwardRef(IconPromptKnowledgeAnswerComponent);
export default IconPromptKnowledgeAnswer;
