{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "network-stats", "title": "Network stats", "description": "Composable peer network metrics.", "registryDependencies": [ "dennisonbertram/bitcoin-ui/bitcoin-core", "dennisonbertram/bitcoin-ui/bitcoin-theme" ], "files": [ { "path": "components/bitcoin/network-stats.tsx", "content": "import type { ComponentProps, ReactNode } from \"react\";\n\nimport { componentClasses } from \"@/lib/utils\";\n\nimport { panelStyles, type BitcoinVisualProps } from \"./shared\";\n\nexport interface NetworkStat {\n label: string;\n value: ReactNode;\n detail?: ReactNode;\n}\n\nexport type NetworkStatsProps = Omit, \"children\"> &\n BitcoinVisualProps & {\n stats: NetworkStat[];\n };\n\nexport function NetworkStats({\n stats,\n unstyled,\n className,\n ...props\n}: NetworkStatsProps) {\n return (\n \n {stats.map((stat) => (\n \n \n {stat.label}\n \n \n {stat.value}\n \n {stat.detail ? (\n \n {stat.detail}\n \n ) : null}\n \n ))}\n \n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }