import { useBlockchain } from "@/hooks/useBlockchain"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Activity, Shield, Home, Plus } from "lucide-react"; export function BlockchainVisualization() { const { stats, chainHealth } = useBlockchain(); return (
Evidence Chain Activity
Auto-refresh:
{/* Genesis Block */}

Genesis

Block #0

{/* Evidence Blocks */}

Evidence

Block #{stats?.totalBlocks ? stats.totalBlocks - 2 : '847,327'}

Property

Block #{stats?.totalBlocks ? stats.totalBlocks - 1 : '847,328'}

Next Block

Pending...

{stats?.evidenceRecords?.toLocaleString() || '23,847'}

Evidence Records

{chainHealth?.isValid ? '99.97%' : '0%'}

Verification Rate

{chainHealth?.averageBlockTime ? `${chainHealth.averageBlockTime}s` : '12.3s'}

Avg Block Time

); }