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

function IconDebuggingComponent(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-debugging${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path d="M9.294 2.97C8.195 1.87 6.41 1.16 4.927 1.793c-.509.217-.78.624-.45.963.448.463 2.548 2.651 2.548 2.651L5.406 7.026S3.177 4.993 2.714 4.544c-.34-.328-.704-.125-.92.383C1.16 6.41 1.87 8.196 2.97 9.295a4.471 4.471 0 0 0 4.703 1.035l3.83 3.83c.38.38.995.38 1.375 0l1.284-1.284a.972.972 0 0 0 0-1.375L10.33 7.672A4.473 4.473 0 0 0 9.294 2.97Z"/></svg>;
}

const IconDebugging = React.forwardRef(IconDebuggingComponent);
export default IconDebugging;
