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

function IconVllmComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-vllm${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 200 200" fill={useCurrentColor ? 'currentColor' : 'none'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M17.648 51.8949H86.2721V184.589L17.648 51.894V51.8949Z" fill={useCurrentColor ? 'currentColor' : '#FDB515'}/><path d="M120.591 47.316L182.356 15.293L136.603 184.587H86.2729L120.591 47.3051V47.316Z" fill={useCurrentColor ? 'currentColor' : '#30A2FF'}/></svg>;
}

const IconVllm = React.forwardRef(IconVllmComponent);
export default IconVllm;
