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

function IconModelHighlightComponent(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-model-highlight${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 16 16" {...rest} ref={ref}><g clipPath="url(#svg_dd04ec07fa__svg_f2d3731b92__a)"><path fill={useCurrentColor ? 'currentColor' : 'url(#svg_dd04ec07fa__svg_f2d3731b92__b)'} d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M13.303 2.697a7.5 7.5 0 0 0-10.606 0l2.952 2.952a3.324 3.324 0 0 1 4.702 0l2.952-2.952Z" opacity=".5"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="m10.507 10 3.335 3.335-1.06 1.061-3.336-3.335z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} fillRule="evenodd" d="M7.886 5.5a2.386 2.386 0 1 0 0 4.771 2.386 2.386 0 0 0 0-4.771ZM4 7.886a3.886 3.886 0 1 1 7.771 0 3.886 3.886 0 0 1-7.771 0Z" clipRule="evenodd"/></g><defs><linearGradient id="svg_dd04ec07fa__svg_f2d3731b92__b" x1="8" x2="8" y1=".5" y2="15.5" gradientUnits="userSpaceOnUse"><stop stopColor="#5C8FFF"/><stop offset="1" stopColor="#7B58FF"/></linearGradient><clipPath id="svg_dd04ec07fa__svg_f2d3731b92__a"><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M0 0h16v16H0z"/></clipPath></defs></svg>;
}

const IconModelHighlight = React.forwardRef(IconModelHighlightComponent);
export default IconModelHighlight;
