import React from "react"; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, } from "recharts"; import { useTheme, Theme } from "@material-ui/core/styles"; interface Props { data: ProcessedStats[]; } interface ProcessedStats { queue: string; // name of the queue. succeeded: number; // number of tasks succeeded. failed: number; // number of tasks failed. } function ProcessedTasksChart(props: Props) { const theme = useTheme(); return ( ); } export default ProcessedTasksChart;