251208:0010 Backend & Frontend Debug
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
2025-12-08 00:10:37 +07:00
parent 32d820ea6b
commit dcd126d704
99 changed files with 2775 additions and 1480 deletions

View File

@@ -4,11 +4,21 @@ import { Card } from "@/components/ui/card";
import { FileText, Clipboard, CheckCircle, Clock } from "lucide-react";
import { DashboardStats } from "@/types/dashboard";
interface StatsCardsProps {
stats: DashboardStats;
export interface StatsCardsProps {
stats: DashboardStats | undefined;
isLoading: boolean;
}
export function StatsCards({ stats }: StatsCardsProps) {
export function StatsCards({ stats, isLoading }: StatsCardsProps) {
if (isLoading || !stats) {
return (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
{[...Array(4)].map((_, i) => (
<Card key={i} className="p-6 h-[100px] animate-pulse bg-muted" />
))}
</div>
);
}
const cards = [
{
title: "Total Correspondences",