{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "utxo-table", "title": "UTXO table", "description": "Semantic unspent transaction output ledger.", "registryDependencies": [ "dennisonbertram/bitcoin-ui/bitcoin-amount", "dennisonbertram/bitcoin-ui/hash-display", "dennisonbertram/bitcoin-ui/protocol-badges" ], "files": [ { "path": "components/bitcoin/utxo-table.tsx", "content": "import type { ComponentProps } from \"react\";\n\nimport type { BitcoinUtxo } from \"@/lib/bitcoin\";\nimport { componentClasses } from \"@/lib/utils\";\n\nimport { BitcoinAmount } from \"./bitcoin-amount\";\nimport { HashDisplay } from \"./hash-display\";\nimport { ScriptBadge } from \"./script-badge\";\nimport { panelStyles, type BitcoinVisualProps } from \"./shared\";\n\nexport type UtxoTableProps = Omit, \"children\"> &\n BitcoinVisualProps & {\n utxos: BitcoinUtxo[];\n caption?: string;\n getTransactionHref?: (utxo: BitcoinUtxo) => string | undefined;\n };\n\nexport function UtxoTable({\n utxos,\n caption = \"Unspent transaction outputs\",\n getTransactionHref,\n unstyled,\n className,\n ...props\n}: UtxoTableProps) {\n return (\n \n \n \n {caption}\n \n \n \n \n Outpoint\n \n \n Script\n \n \n Confirmations\n \n \n Value\n \n \n \n \n {utxos.map((utxo) => (\n \n \n
\n \n \n :{utxo.vout}\n \n
\n \n \n \n \n \n {utxo.confirmations.toLocaleString(\"en-US\")}\n \n \n \n \n \n ))}\n \n \n \n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }