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

function IconGraphConsolidatedEntityComponent(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-graph-consolidated-entity${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path fillRule="evenodd" d="M2.248 2.656a.701.701 0 0 0-.195 1.386c.787.112 2.315.707 3.93 2.251a9.69 9.69 0 0 0 2.67 1.801 11.531 11.531 0 0 0-2.539 1.862C4.667 11.34 2.927 11.944 2.104 12a.7.7 0 0 0 .093 1.397c1.182-.08 3.223-.84 4.884-2.428 1.589-1.519 3.092-2.118 3.89-2.244h2.865a.7.7 0 0 0 0-1.4H10.95c-.828-.06-2.559-.664-4-2.042-1.785-1.706-3.572-2.467-4.703-2.626Z" clipRule="evenodd"/></svg>;
}

const IconGraphConsolidatedEntity = React.forwardRef(IconGraphConsolidatedEntityComponent);
export default IconGraphConsolidatedEntity;
