import React from 'react'; import { NoContent, Icon } from 'UI'; import { Styles } from '../../common'; import { BarChart, Bar, CartesianGrid, Tooltip, Legend, ResponsiveContainer, XAxis, YAxis } from 'recharts'; interface Props { data: any metric?: any } function BreakdownOfLoadedResources(props: Props) { const { data, metric } = props; const gradientDef = Styles.gradientDef(); return ( No data available for the selected period. } show={ metric.data.chart && metric.data.chart.length === 0 } > {gradientDef} Styles.tickFormatter(val)} /> ); } export default BreakdownOfLoadedResources;