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

function IconSortAltComponent(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-sort-alt${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 48 48" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M31.25 42a1 1 0 001-1l.001-22.075H38.4a.6.6 0 00.474-.968l-8.895-11.43a.996.996 0 00-.283-.249.998.998 0 00-1.696.717V41a1 1 0 001 1h2.25zm-11.67-.18a1 1 0 00.42-.814V7.002a1 1 0 00-1-1h-2.25a1 1 0 00-1 1v22.075l-6.15-.001a.6.6 0 00-.473.968l8.895 11.43c.08.104.176.187.283.25a.998.998 0 001.275.097z"/></svg>;
}

const IconSortAlt = React.forwardRef(IconSortAltComponent);
export default IconSortAlt;
