"use client";
import { type ReactNode } from "react";
import { useDashboard } from "@/hooks/use-dashboard";
import {
PageHeader,
PaperCard,
LoadingState,
ErrorState,
Badge,
} from "@/components/ui";
import { NotificationPanel } from "@/components/notification-panel";
import { t } from "@/lib/i18n";
interface StatCardProps {
label: string;
value: number | string;
suffix?: string;
}
function StatCard({ label, value, suffix }: StatCardProps): ReactNode {
return (
{label}
{value}
{suffix && (
{suffix}
)}
| 日期 | 教师 | 学生 | 平均分 |
|---|---|---|---|
| {row.date} | {row.teachers} | {row.students} | {row.avgScore.toFixed(1)} |