export function LevelDBSizeCard()

in src/components/graphs/MemorySpecs/storageEngineMetrics.tsx [423:441]


export function LevelDBSizeCard({ size }: LevelDBSizeCardProps) {
  return (
    <Card className="w-full max-w-xs">
      <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
        <CardTitle className="text-sm font-medium">Database Size</CardTitle>
        <Database className="h-4 w-4 text-muted-foreground" />
      </CardHeader>
      <div className="flex flex-col justify-center items-center flex-grow p-6">
        <div className="text-3xl sm:text-4xl md:text-5xl font-bold text-center">
          {Math.floor((size || 0) / 1000)} KB
        </div>
        <p className="text-xs text-muted-foreground mt-2">LevelDB Storage</p>
        <p className="text-sm text-center mt-4 max-w-xs text-muted-foreground">
          Size of data present in LevelDB with compaction in place
        </p>
      </div>
    </Card>
  );
}