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

function IconLanguageModelComponent(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-language-model${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path d="M7.875 1.75c.161 0 .292.13.292.292v.583c0 .161-.13.292-.292.292H5.25v9.041c0 .161-.13.292-.292.292h-.583a.292.292 0 0 1-.292-.292V2.917H1.458a.292.292 0 0 1-.291-.292v-.583c0-.161.13-.292.291-.292h6.417Zm4.667 4.083c.16 0 .291.131.291.292v.583c0 .161-.13.292-.291.292H10.5v4.958c0 .161-.13.292-.292.292h-.583a.292.292 0 0 1-.292-.292V7H7.292A.292.292 0 0 1 7 6.708v-.583c0-.161.13-.292.292-.292h5.25Z"/></svg>;
}

const IconLanguageModel = React.forwardRef(IconLanguageModelComponent);
export default IconLanguageModel;
