{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "address-display", "title": "Address display", "description": "Copyable Bitcoin address with network and script metadata.", "registryDependencies": [ "dennisonbertram/bitcoin-ui/hash-display", "dennisonbertram/bitcoin-ui/protocol-badges" ], "files": [ { "path": "components/bitcoin/address-display.tsx", "content": "import type { ComponentProps } from \"react\";\n\nimport type { BitcoinNetwork, ScriptType } from \"@/lib/bitcoin\";\nimport { componentClasses } from \"@/lib/utils\";\n\nimport { HashDisplay } from \"./hash-display\";\nimport { NetworkBadge } from \"./network-badge\";\nimport { ScriptBadge } from \"./script-badge\";\nimport { type BitcoinVisualProps } from \"./shared\";\n\nexport type AddressDisplayProps = Omit, \"children\"> &\n BitcoinVisualProps & {\n address: string;\n network?: BitcoinNetwork;\n scriptType?: ScriptType;\n label?: string;\n href?: string;\n copyable?: boolean;\n };\n\nexport function AddressDisplay({\n address,\n network,\n scriptType,\n label,\n href,\n copyable = true,\n unstyled,\n className,\n ...props\n}: AddressDisplayProps) {\n return (\n \n {label ? (\n \n {label}\n \n ) : null}\n \n {network || scriptType ? (\n \n {network ? (\n \n ) : null}\n {scriptType ? (\n \n ) : null}\n \n ) : null}\n \n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }