"use client" import { useTheme } from "next-themes"; import { colors } from "@/lib/colors"; import { useConfig } from "@/hooks/use-config"; import { ResponsiveContainer, PieChart, Pie, Cell } from 'recharts'; const PieChartWithPaddingAngle = ({ height = 300 }) => { const { theme: mode } = useTheme(); const data = [ { name: 'Group A', value: 400 }, { name: 'Group B', value: 300 }, { name: 'Group C', value: 300 }, { name: 'Group D', value: 200 }, ]; const COLORS = [ colors.primary, colors.info, colors.warning, colors.success ]; return ( {data.map((entry, index) => ( ))} {data.map((entry, index) => ( ))} ); }; export default PieChartWithPaddingAngle;