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

function IconRerankComponent(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-rerank${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 14 14" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M12.5416 2.0415C12.5416 2.20259 12.411 2.33317 12.25 2.33317L2.62496 2.33317L2.62496 12.8332C2.62496 12.9943 2.49437 13.1248 2.33329 13.1248L1.74996 13.1248C1.58887 13.1248 1.45829 12.9943 1.45829 12.8332L1.45829 1.45817C1.45829 1.29709 1.58888 1.1665 1.74996 1.1665L12.25 1.1665C12.411 1.1665 12.5416 1.29709 12.5416 1.45817L12.5416 2.0415ZM7.58329 5.24984C7.58329 5.41092 7.45271 5.5415 7.29163 5.5415L3.79163 5.5415C3.63054 5.5415 3.49996 5.41092 3.49996 5.24984L3.49996 4.6665C3.49996 4.50542 3.63054 4.37484 3.79163 4.37484L7.29163 4.37484C7.45271 4.37484 7.58329 4.50542 7.58329 4.6665L7.58329 5.24984ZM9.62496 8.45817C9.62496 8.61925 9.49438 8.74984 9.33329 8.74984L3.79163 8.74984C3.63054 8.74984 3.49996 8.61925 3.49996 8.45817L3.49996 7.87484C3.49996 7.71375 3.63054 7.58317 3.79163 7.58317L9.33329 7.58317C9.49438 7.58317 9.62496 7.71375 9.62496 7.87484L9.62496 8.45817ZM11.6666 11.6665C11.6666 11.8276 11.536 11.9582 11.375 11.9582L3.79163 11.9582C3.63054 11.9582 3.49996 11.8276 3.49996 11.6665L3.49996 11.0832C3.49996 10.9221 3.63054 10.7915 3.79163 10.7915L11.375 10.7915C11.536 10.7915 11.6666 10.9221 11.6666 11.0832L11.6666 11.6665Z"/></svg>;
}

const IconRerank = React.forwardRef(IconRerankComponent);
export default IconRerank;
