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

function IconLoadBalancingComponent(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-load-balancing${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="M24 5a8 8 0 015.816 13.493l.087.118.079.126 5.438 9.419a8 8 0 11-6.021 10.345H18.6a8 8 0 11-6.021-10.345l5.438-9.42c.05-.086.106-.167.166-.244A8 8 0 0124 5zM11 32a4 4 0 100 8 4 4 0 000-8zm26 0a4 4 0 100 8 4 4 0 000-8zM21.482 20.737l-5.295 9.172A7.992 7.992 0 0118.86 34.5h10.28a7.992 7.992 0 012.673-4.591l-5.295-9.172a2.078 2.078 0 01-.065-.121A7.96 7.96 0 0124 21a7.993 7.993 0 01-2.454-.384l-.064.12zM24 9a4 4 0 100 8 4 4 0 000-8z"/></svg>;
}

const IconLoadBalancing = React.forwardRef(IconLoadBalancingComponent);
export default IconLoadBalancing;
