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

function IconHorizontalBarChartNodataComponent(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-horizontal-bar-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="M0 65V53h65a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H0Z" opacity=".7"/><path fill={useCurrentColor ? 'currentColor' : '#DDE2E9'} d="M98 19a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H0V19h98Z"/><path fill={useCurrentColor ? 'currentColor' : '#EAEDF1'} d="M0 48V36h80a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H0Z" opacity=".9"/><path fill={useCurrentColor ? 'currentColor' : '#EAEDF1'} d="M0 82V70h37a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H0Z" opacity=".5"/></svg>;
}

const IconHorizontalBarChartNodata = React.forwardRef(IconHorizontalBarChartNodataComponent);
export default IconHorizontalBarChartNodata;
