{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "crypto1",
  "title": "Token Price Hero",
  "description": "Hero section with token price card showing live market stats. Price change indicator, market cap, volume, and circulating supply grid. Trending up/down icons.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button"
  ],
  "files": [
    {
      "path": "registry/crypto1/crypto1.tsx",
      "content": "\"use client\";\n\nimport { ArrowUpRight, TrendingDown, TrendingUp } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface StatItem {\n  title: string;\n  value: string;\n}\n\ninterface TokenInfo {\n  name: string;\n  symbol: string;\n  price: number;\n  priceChange: number;\n  priceLabel?: string;\n  stats?: StatItem[];\n  explorerLink?: {\n    label: string;\n    href: string;\n  };\n}\n\ninterface ButtonItem {\n  label: string;\n  href?: string;\n  variant?: \"default\" | \"secondary\" | \"outline\" | \"ghost\";\n}\n\ninterface Crypto1Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  token?: TokenInfo;\n  buttons?: ButtonItem[];\n  displayPosition?: \"left\" | \"right\";\n  className?: string;\n}\n\nexport const crypto1Demo: Crypto1Props = {\n  badge: { label: \"Live\", variant: \"default\" },\n  heading: \"The Future of Decentralized Finance\",\n  description:\n    \"A next-generation blockchain protocol designed for speed, security, and scalability. Join millions of users building the decentralized economy.\",\n  token: {\n    name: \"Protocol Token\",\n    symbol: \"BSTE\",\n    price: 42.58,\n    priceChange: 5.23,\n    priceLabel: \"24h Change\",\n    stats: [\n      { title: \"Market Cap\", value: \"$4.2B\" },\n      { title: \"24h Volume\", value: \"$892M\" },\n      { title: \"Circulating Supply\", value: \"100M BSTE\" },\n      { title: \"All-Time High\", value: \"$68.42\" },\n    ],\n    explorerLink: {\n      label: \"View on Explorer\",\n      href: \"https://beste.co\",\n    },\n  },\n  buttons: [\n    { label: \"Get Started\", href: \"https://beste.co\" },\n    {\n      label: \"View Documentation\",\n      href: \"https://beste.co\",\n      variant: \"outline\",\n    },\n  ],\n};\n\nexport function Crypto1({\n  badge,\n  heading,\n  description,\n  token,\n  buttons = [],\n  displayPosition = \"left\",\n  className,\n}: Crypto1Props) {\n  const isPositive = token?.priceChange ? token.priceChange >= 0 : true;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        <div className=\"grid gap-12 lg:grid-cols-2 lg:gap-16 items-center\">\n          {/* Content */}\n          <div className={cn(displayPosition === \"right\" && \"lg:order-2\")}>\n            {badge && (\n              <div className=\"mb-6\">\n                <Badge variant={badge.variant ?? \"default\"}>\n                  {badge.label}\n                </Badge>\n              </div>\n            )}\n            {heading && (\n              <h1 className=\"text-3xl font-semibold md:text-4xl lg:text-5xl text-balance\">\n                {heading}\n              </h1>\n            )}\n            {description && (\n              <div\n                className=\"mt-4 text-lg text-muted-foreground text-balance\"\n                dangerouslySetInnerHTML={{ __html: description }}\n              />\n            )}\n            {buttons.length > 0 && (\n              <div className=\"mt-8 flex flex-wrap gap-3\">\n                {buttons.map((button, index) => (\n                  <Button\n                    key={index}\n                    variant={button.variant ?? \"default\"}\n                    asChild\n                  >\n                    <Link href={button.href ?? \"#\"}>{button.label}</Link>\n                  </Button>\n                ))}\n              </div>\n            )}\n          </div>\n\n          {/* Token Stats Card */}\n          {token && (\n            <div className=\"rounded-2xl border bg-card p-6 md:p-8\">\n              {/* Token Header */}\n              <div className=\"flex items-center justify-between mb-6\">\n                <div>\n                  <p className=\"text-sm text-muted-foreground\">{token.name}</p>\n                  <p className=\"text-2xl font-semibold\">{token.symbol}</p>\n                </div>\n                <div\n                  className={cn(\n                    \"flex items-center gap-1 rounded-full px-3 py-1 text-sm font-medium\",\n                    isPositive\n                      ? \"bg-emerald-500/10 text-emerald-500\"\n                      : \"bg-rose-500/10 text-rose-500\"\n                  )}\n                >\n                  {isPositive ? (\n                    <TrendingUp className=\"size-4\" />\n                  ) : (\n                    <TrendingDown className=\"size-4\" />\n                  )}\n                  <span>\n                    {isPositive ? \"+\" : \"\"}\n                    {token.priceChange}%\n                  </span>\n                </div>\n              </div>\n\n              {/* Price */}\n              <div className=\"mb-6\">\n                <p className=\"text-4xl font-bold tracking-tight\">\n                  ${token.price.toLocaleString()}\n                </p>\n                {token.priceLabel && (\n                  <p className=\"text-sm text-muted-foreground mt-1\">\n                    {token.priceLabel}\n                  </p>\n                )}\n              </div>\n\n              {/* Stats Grid */}\n              {token.stats && token.stats.length > 0 && (\n                <div className=\"grid grid-cols-2 gap-4\">\n                  {token.stats.map((stat, index) => (\n                    <div key={index} className=\"rounded-lg bg-muted/50 p-4\">\n                      <p className=\"text-sm text-muted-foreground\">\n                        {stat.title}\n                      </p>\n                      <p className=\"text-lg font-semibold mt-1\">{stat.value}</p>\n                    </div>\n                  ))}\n                </div>\n              )}\n\n              {/* View More Link */}\n              {token.explorerLink && (\n                <Link\n                  href={token.explorerLink.href}\n                  className=\"mt-6 flex items-center justify-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors\"\n                >\n                  {token.explorerLink.label}\n                  <ArrowUpRight className=\"size-4\" />\n                </Link>\n              )}\n            </div>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/crypto1.tsx"
    }
  ],
  "type": "registry:block"
}