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

function IconPromptGeneralStructureComponent(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_general-structure${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="M2.067 14V2c0-.7.567-1.266 1.267-1.266h7l.125.012a.6.6 0 0 1 .32.186l3 3.333a.6.6 0 0 1 .154.401v3a.6.6 0 1 1-1.2 0v-2.77l-2.667-2.963H3.334A.068.068 0 0 0 3.266 2v12c0 .037.03.067.068.067h4a.6.6 0 0 1 0 1.2h-4c-.7 0-1.267-.567-1.267-1.267Z"/><path d="M10.734 14.667V10a.6.6 0 1 1 1.199 0v4.667a.6.6 0 0 1-1.2 0Z"/><path d="M13.333 9.4a.6.6 0 1 1 0 1.2h-4a.6.6 0 1 1 0-1.2h4ZM9.4 1.333a.6.6 0 1 1 1.2 0v2.734h2.733a.6.6 0 1 1 0 1.2H10a.6.6 0 0 1-.6-.6V1.332Z"/></svg>;
}

const IconPromptGeneralStructure = React.forwardRef(IconPromptGeneralStructureComponent);
export default IconPromptGeneralStructure;
