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

function IconNvidiaComponent(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-nvidia${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_540df7f838__clip0_2729_21679)"><path d="M8.95372 8.79567V7.36443C9.07755 7.35467 9.22542 7.34801 9.37401 7.34642H9.37776C13.3021 7.22254 15.875 10.723 15.875 10.723C15.875 10.723 13.0988 14.5769 10.1208 14.5769C9.72708 14.5777 9.33581 14.5151 8.96198 14.3916V10.0423C10.4908 10.2275 10.8 10.9001 11.7111 12.4289L13.7525 10.714C13.7525 10.714 12.2597 8.7604 9.75 8.7604C9.71013 8.75965 9.66294 8.7589 9.61566 8.7589C9.3852 8.75897 9.15493 8.77199 8.92593 8.79792L8.9537 8.79558L8.95372 8.79567ZM8.95372 4.05688V6.19662L9.37776 6.16953C14.8318 5.98426 18.3937 10.6426 18.3937 10.6426C18.3937 10.6426 14.3109 15.6104 10.0577 15.6104C9.69041 15.609 9.32385 15.5766 8.96198 15.5136V16.8398C9.26398 16.8781 9.56794 16.8988 9.87235 16.902C13.8321 16.902 16.6968 14.8779 19.4722 12.4912C19.9316 12.8627 21.8139 13.7551 22.2041 14.1446C19.5691 16.3541 13.4259 18.1314 9.94289 18.1314C9.61817 18.1317 9.29369 18.1139 8.97096 18.0781V19.943H24.0151V4.05839L8.95372 4.05688ZM8.95372 14.39V15.5218C5.29418 14.8674 4.27734 11.0585 4.27734 11.0585C4.27734 11.0585 6.03656 9.11314 8.95372 8.79492V10.0325H8.94547C7.41666 9.8464 6.21358 11.2784 6.21358 11.2784C6.21358 11.2784 6.89431 13.692 8.95447 14.3908L8.95372 14.39ZM2.45723 10.8986C2.45723 10.8986 4.62244 7.69916 8.96198 7.36293V6.19587C4.15574 6.58539 0 10.651 0 10.651C0 10.651 2.35137 17.4574 8.95445 18.0759V16.8382C4.11135 16.2378 2.45796 10.8978 2.45796 10.8978L2.45723 10.8986Z"/></g><defs><clipPath id="svg_540df7f838__clip0_2729_21679"><path d="M0 0H24V24H0z"/></clipPath></defs></svg>;
}

const IconNvidia = React.forwardRef(IconNvidiaComponent);
export default IconNvidia;
