{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The buttons at the end of a top bar: login, the call to action and the theme button (it only reports the press). No wrapper: they sit in the row of the bar.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The buttons at the end of a top bar: login, the call to action and the theme button (it only reports the\n * press). No wrapper: they sit in the row of the bar.\n */\nimport { type ReactNode } from \"react\";\nimport { Button } from \"../compose\";\nimport { urlOf } from \"../utils\";\n\nexport type NavActionsProps = {\n  login?: string;\n  loginHref?: string;\n  cta?: string;\n  ctaHref?: string;\n  actions?: \"none\" | \"cta\";\n  tone?: \"default\" | \"inverse\";\n  themeLabel?: string;\n  onTheme?: () => void;\n};\n\nexport function NavActions({\n  login,\n  loginHref,\n  cta,\n  ctaHref,\n  actions = \"cta\",\n  tone = \"default\",\n  themeLabel,\n  onTheme,\n}: NavActionsProps) {\n  return (\n    <>\n      {login ? (\n        <Button\n          variant=\"ghost\"\n          size=\"sm\"\n          href={urlOf(loginHref)}\n          className={(((tone as string) === \"inverse\") ? \"text-background hover:bg-background/10\" : \"\")}\n        >\n          {login}\n        </Button>\n      ) : null}\n      {(((actions as string) === \"cta\") && cta) ? (\n        <Button variant={(((tone as string) === \"inverse\") ? \"secondary\" : \"default\")} size=\"sm\" href={urlOf(ctaHref)}>\n          {cta}\n        </Button>\n      ) : null}\n      {themeLabel ? (\n        <Button variant=\"outline\" size=\"sm\" onClick={() => onTheme?.()}>\n          {themeLabel}\n        </Button>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "components/nav-actions.tsx",
      "target": "components/nav-actions.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "nav-actions",
  "registryDependencies": [
    "compose",
    "utils"
  ],
  "runtime": "react",
  "title": "Nav Actions",
  "type": "registry:component"
}
