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

function IconPieChartNodataComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-pie-chart-nodata${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 100 100" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#EAEDF1'} d="M82.553 52.093c1.105 0 2.006.897 1.946 2A36.647 36.647 0 1 1 45.907 15.5c1.102-.06 1.999.841 1.999 1.946v32.647a2 2 0 0 0 2 2h32.647Z" opacity=".6"/><path fill={useCurrentColor ? 'currentColor' : '#DDE2E9'} d="M86.742 47.907c1.104 0 2.005-.897 1.946-2-1.003-18.648-15.947-33.592-34.594-34.595-1.103-.059-2 .842-2 1.947v32.648a2 2 0 0 0 2 2h32.648Z"/></svg>;
}

const IconPieChartNodata = React.forwardRef(IconPieChartNodataComponent);
export default IconPieChartNodata;
