import { Calendar, CheckCircle, FileText, MessageCircle, Users, } from "lucide-react"; import { Bar, BarChart, CartesianGrid, Cell, Pie, PieChart, ResponsiveContainer, XAxis, YAxis, Tooltip, // Added Tooltip import } from "recharts"; // Import Mantine components import { Grid, Stack, Group, Text, Title, ActionIcon, Progress, Box, Badge, ThemeIcon, Card, // Added for icon containers useMantineColorScheme, // Add this import } from "@mantine/core"; const barChartData = [ { month: "Jan", value: 145 }, { month: "Feb", value: 165 }, { month: "Mar", value: 195 }, { month: "Apr", value: 155 }, { month: "Mei", value: 205 }, { month: "Jun", value: 185 }, ]; const pieChartData = [ { name: "Puas", value: 25 }, { name: "Cukup", value: 25 }, { name: "Kurang", value: 25 }, { name: "Sangat puas", value: 25 }, ]; const COLORS = ["#4E5BA6", "#F4C542", "#8CC63F", "#E57373"]; const divisiData = [ { name: "Kesejahteraan", value: 37 }, { name: "Pemerintahan", value: 26 }, { name: "Keuangan", value: 17 }, { name: "Sekretaris Desa", value: 15 }, ]; const eventData = [ { date: "1 Oktober 2025", title: "Hari Kesaktian Pancasila" }, { date: "15 Oktober 2025", title: "Davest" }, { date: "19 Oktober 2025", title: "Rapat Koordinasi" }, ]; export function DashboardContent() { const { colorScheme } = useMantineColorScheme(); const dark = colorScheme === 'dark'; return ( {/* Stats Cards */} Surat Minggu Ini 99 14 baru, 14 diproses 12% dari minggu lalu ↗ +12% Pengaduan Aktif 28 14 baru, 14 diproses Layanan Selesai 156 bulan ini +8% Kepuasan Warga 87.2% dari 482 responden {/* Bar Chart */} Statistik Pengajuan Surat Trend pengajuan surat 6 bulan terakhir {/* Original SVG converted to a generic Icon placeholder */} {/* Pie Chart */} Tingkat Kepuasan Tingkat kepuasan layanan {pieChartData.map((_entry, index) => ( ))} Sangat puas (0%) Puas (0%) Cukup (0%) Kurang (0%) {/* Bottom Section */} {/* Divisi Teraktif */} {/* Original SVG icon */} Divisi Teraktif {divisiData.map((divisi, index) => ( {divisi.name} {divisi.value} Kegiatan ))} {/* Kalender */} Kalender & Kegiatan Mendatang {eventData.map((event, index) => ( {event.date} {event.title} ))} {/* APBDes Chart */} Grafik APBDes Belanja Pendapatan Pembangunan ); }