{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "env-badge",
  "type": "registry:ui",
  "title": "Env badge",
  "description": "Uppercase environment badge for production, staging or development, with production outlined in red so live systems stand out in dev tools and consoles.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/env-badge.tsx",
      "type": "registry:ui",
      "target": "components/ui/env-badge.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nconst tones = {\n  production: \"border-danger bg-surface text-fg\",\n  staging: \"border-border bg-surface text-fg\",\n  development: \"border-border bg-sunken text-fg\",\n} as const\n\nfunction EnvBadge({\n  env = \"development\",\n  className,\n}: {\n  env?: keyof typeof tones\n  className?: string\n}) {\n  return (\n    <span\n      data-slot=\"env-badge\"\n      className={cn(\n        \"inline-flex h-5 items-center rounded-md border px-1.5 text-[11px] font-medium tracking-[0.01em] uppercase\",\n        tones[env],\n        className\n      )}\n    >\n      {env}\n    </span>\n  )\n}\nexport { EnvBadge }\n"
    }
  ]
}
