/** * dashboard-client/src/components/CacheHitsCard.tsx — Cache Hits & Compactions card. * * 6 fields: Cache Hits (session), Cache Hits (total), * Tokens Saved (session), Tokens Saved (total), * Compactions (session), Compactions (total). */ import type React from "react"; import { Card, CardContent, CardHeader, CardTitle } from "../components/ui/card"; export interface CacheHitsCardProps { /** Cache hits in the current session. */ cacheHitsSession: number; /** Total cache hits across all sessions. */ cacheHitsTotal: number; /** Tokens saved by cache hits this session. */ tokensSavedSession: number; /** Total tokens saved by cache hits. */ tokensSavedTotal: number; /** Compactions performed this session. */ compactionsSession: number; /** Total compactions performed. */ compactionsTotal: number; } function StatRow({ label, value, }: { label: string; value: string | number; }): React.ReactElement { return (