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

function IconTrajectoryQaComponent(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-trajectory_qa${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 42 46" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M21.7432 0.31543L21.7441 0.316406L21.752 0.319336L21.7715 0.327148L21.8438 0.356445C21.9049 0.381499 21.9927 0.417869 22.1045 0.464844C22.3286 0.559004 22.6497 0.696144 23.0449 0.87207C23.8342 1.22342 24.9268 1.73206 26.1436 2.36133C28.531 3.5961 31.5758 5.3871 33.6953 7.46484C38.0292 11.7134 42 17.0981 42 24.1729C41.9998 35.7707 32.5979 45.1729 21 45.1729C9.40214 45.1729 0.000195851 35.7707 0 24.1729C0 16.9629 4.46949 10.8545 8.68457 7.17285C10.7036 5.40932 13.6251 3.69439 15.9346 2.45898C17.1098 1.83029 18.1659 1.30474 18.9287 0.936523C19.3103 0.752338 19.6196 0.606935 19.835 0.506836C19.9427 0.456761 20.0277 0.418205 20.0859 0.391602L20.1533 0.360352L20.1709 0.352539L20.1787 0.348633L20.9541 0L21.7432 0.31543ZM20.667 4.53906C19.9414 4.88931 18.9365 5.38878 17.8213 5.98535C15.5493 7.20076 12.9704 8.73902 11.3154 10.1846C7.53054 13.4905 4 18.595 4 24.1729C4.0002 33.5615 11.6113 41.1729 21 41.1729C30.3887 41.1729 37.9998 33.5615 38 24.1729C38 18.7215 34.9704 14.3169 30.8945 10.3213C29.2191 8.67885 26.6168 7.10934 24.3057 5.91406C23.1732 5.32838 22.1535 4.85378 21.418 4.52637C21.2818 4.46574 21.1552 4.41049 21.04 4.36035C20.9263 4.41446 20.8013 4.47423 20.667 4.53906ZM33.3281 19.6729L21.5654 31.4355L16.0654 26.4355L11.5 31.001L8.67188 28.1729L15.9346 20.9102L21.4346 25.9102L30.5 16.8438L33.3281 19.6729Z"/></svg>;
}

const IconTrajectoryQa = React.forwardRef(IconTrajectoryQaComponent);
export default IconTrajectoryQa;
