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

function IconMenuIndicatorsComponent(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-menu-indicators${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path d="M12.833 18.572c-.83.282-1.7.427-2.575.428a8.045 8.045 0 0 1-2.577-.428l2.577-7.814 2.575 7.814ZM10 2a8.5 8.5 0 0 1 7.852 5.216 8.415 8.415 0 0 1-1.843 9.208l-2.405-2.392a5.048 5.048 0 0 0 1.108-5.525A5.1 5.1 0 0 0 10 5.376a5.1 5.1 0 0 0-4.712 3.13 5.048 5.048 0 0 0 1.107 5.526L3.99 16.424a8.413 8.413 0 0 1-1.843-9.208A8.502 8.502 0 0 1 10 2Z"/></svg>;
}

const IconMenuIndicators = React.forwardRef(IconMenuIndicatorsComponent);
export default IconMenuIndicators;
