"use client"; import Link from "next/link"; import Grid from "@mui/material/Grid"; import { Card, CardActionArea, CardContent, Paper, Stack, Typography } from "@mui/material"; type StatCard = { label: string; icon: string; count: number; href: string; }; type RecentEvent = { summary: string; created_at: string; }; export default function OverviewClient({ userName, stats, recentEvents }: { userName: string; stats: StatCard[]; recentEvents: RecentEvent[]; }) { return ( Control Center Welcome back, {userName} Everything you need to orchestrate Caddy proxies, certificates, and secure edge services lives here. {stats.map((stat) => ( {stat.icon} {stat.count} {stat.label} ))} Recent Activity {recentEvents.length === 0 ? ( No activity recorded yet. ) : ( {recentEvents.map((event, index) => ( {event.summary} {new Date(event.created_at).toLocaleString()} ))} )} ); }