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

function IconEn1Component(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-en_1${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 12 12" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M5.78474 9.7747V8.15044H1.80234V6.76901H5.53112V5.15015H1.80234V3.84426H5.76316V2.22H0V9.7747H5.78474ZM12 6.29954C12 5.0746 11.1798 4.33532 10.1221 4.33532C9.41521 4.33532 8.88099 4.58894 8.54642 5.14475V4.48101H6.92756V9.7747H8.61657V6.9255C8.61657 6.24018 9.0051 5.9218 9.47457 5.9218C9.998 5.9218 10.311 6.27256 10.311 6.89852V9.7747H12V6.29954Z"/></svg>;
}

const IconEn1 = React.forwardRef(IconEn1Component);
export default IconEn1;
