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

function IconAgtDebugComponent(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-agt_debug${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 fillRule="evenodd" d="M1.68959 4.38216C1.88888 3.91484 2.46324 3.86591 2.77523 4.16821C3.20069 4.58047 4.39359 5.72102 5.01052 6.31047L6.4981 4.8229C5.90865 4.20597 4.76811 3.01309 4.35584 2.58761C4.05355 2.27564 4.10245 1.70126 4.56979 1.50197C5.9317 0.921178 7.57347 1.57347 8.58316 2.58316C9.75227 3.75227 10.0692 5.44956 9.53632 6.90503L13.5833 10.952C13.9322 11.301 13.9322 11.8667 13.5833 12.2156L12.404 13.3949C12.0551 13.7438 11.4894 13.7438 11.1404 13.3949L7.09379 9.34828C5.63807 9.88171 3.94019 9.56495 2.77078 8.39554C1.76109 7.38585 1.10879 5.74409 1.68959 4.38216ZM7.05124 8.21193C7.01922 8.22002 6.9875 8.23121 6.95645 8.24562C5.83198 8.76745 4.45519 8.56367 3.52892 7.6374C2.8918 7.00028 2.531 6.15821 2.54671 5.43653C3.14422 6.01003 3.98363 6.81227 4.39715 7.2073C4.74992 7.5443 5.30356 7.53371 5.64511 7.19216L7.37978 5.45749C7.72133 5.11594 7.73192 4.5623 7.39492 4.20953C6.99989 3.79601 6.19767 2.95661 5.62415 2.35909C6.34583 2.34338 7.18791 2.70418 7.82502 3.34129C8.75129 4.26757 8.95507 5.64436 8.43324 6.76883C8.41789 6.80189 8.40621 6.83571 8.39801 6.86984C8.33815 7.05525 8.38184 7.26683 8.52907 7.41406L12.6988 11.5838L11.7722 12.5104L7.60246 8.34067C7.45337 8.19158 7.23831 8.14866 7.05124 8.21193Z" clipRule="evenodd"/></svg>;
}

const IconAgtDebug = React.forwardRef(IconAgtDebugComponent);
export default IconAgtDebug;
