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

function IconTraceRawComponent(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-trace-raw${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="M9.495 2.02c.357.09.574.451.485.808L7.313 13.495a.667.667 0 1 1-1.293-.323L8.687 2.505a.667.667 0 0 1 .808-.485Zm1.367 3.509c.26-.26.682-.26.943 0l1.528 1.528c.521.52.521 1.365 0 1.886l-1.528 1.528a.667.667 0 0 1-.943-.942L12.39 8l-1.528-1.529a.667.667 0 0 1 0-.942Zm-6.667 0a.667.667 0 1 1 .943.942L3.609 8l1.529 1.529a.667.667 0 0 1-.943.942L2.667 8.943a1.333 1.333 0 0 1 0-1.886L4.195 5.53Z" clipRule="evenodd"/></svg>;
}

const IconTraceRaw = React.forwardRef(IconTraceRawComponent);
export default IconTraceRaw;
