"use client" import { Pie, PieChart } from "recharts"; import { Card, CardContent } from "./lib/card"; import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig } from "./lib/chart"; import type { CSSProperties } from "react"; // eslint-disable-next-line react-refresh/only-export-components export default (props: { chartConfig: ChartConfig; chartData: never[] | undefined; chartTitle:string}) =>{ return ( {props.chartTitle && props.chartTitle !== "" && props.chartTitle !== "undefined" ? (
{props.chartTitle}
): null} } />
) }