"use client"; import { Users, Activity, Workflow, Server } from "lucide-react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { AdminStats } from "@/types/admin"; import { Skeleton } from "@/components/ui/skeleton"; interface StatsOverviewProps { stats: AdminStats | null; loading: boolean; } export function StatsOverview({ stats, loading }: StatsOverviewProps) { if (loading || !stats) { return (
{stats.userGrowth > 0 ? "+" : ""} {stats.userGrowth}% from last month
in the last 7 days
Active across the platform
All services operational