import React from "react"; import { PieChart, Pie, Cell, ResponsiveContainer, Legend } from "recharts"; import { useTheme } from "@mui/material/styles"; import { Box } from "@mui/material"; export interface PieData { name: string; value: number; color: string; } interface Props { data: PieData[]; showLabels?: boolean; } export function NodePieChart(props: Props) { const theme = useTheme(); const { data, showLabels } = props; return ( {data.map((entry, index) => ( ))} ); }