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

function IconTabelNodataComponent(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-tabel-nodata${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 140 140" {...rest} ref={ref}><rect width="124" height="19" x="8" y="23" fill={useCurrentColor ? 'currentColor' : '#DDE2E9'} rx="2"/><rect width="40" height="22" x="92" y="95" fill={useCurrentColor ? 'currentColor' : '#DDE2E9'} rx="2"/><rect width="39" height="22" x="8" y="95" fill={useCurrentColor ? 'currentColor' : '#E4E8ED'} rx="2"/><rect width="39" height="22" x="50" y="95" fill={useCurrentColor ? 'currentColor' : '#EEF1F4'} rx="2"/><rect width="40" height="22" x="92" y="45" fill={useCurrentColor ? 'currentColor' : '#EEF1F4'} rx="2"/><rect width="39" height="22" x="8" y="45" fill={useCurrentColor ? 'currentColor' : '#EEF1F4'} rx="2"/><rect width="39" height="22" x="50" y="45" fill={useCurrentColor ? 'currentColor' : '#E7EBF0'} rx="2"/><rect width="40" height="22" x="92" y="70" fill={useCurrentColor ? 'currentColor' : '#EEF1F4'} rx="2"/><rect width="39" height="22" x="8" y="70" fill={useCurrentColor ? 'currentColor' : '#DDE2E9'} rx="2"/><rect width="39" height="22" x="50" y="70" fill={useCurrentColor ? 'currentColor' : '#E4E8ED'} rx="2"/></svg>;
}

const IconTabelNodata = React.forwardRef(IconTabelNodataComponent);
export default IconTabelNodata;
