{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-18",
  "type": "registry:block",
  "description": "Four-tier pricing row with a yearly billing switch and USD/EUR/GBP currency selector.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "switch"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/pricing/pricing-18.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Switch } from \"@workspace/ui/components/switch\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst currencies = {\n  USD: { symbol: \"$\", rate: 1 },\n  EUR: { symbol: \"€\", rate: 0.92 },\n  GBP: { symbol: \"£\", rate: 0.79 },\n  INR: { symbol: \"₹\", rate: 83 },\n} as const\n\ntype Currency = keyof typeof currencies\n\nconst tiers = [\n  {\n    name: \"Basic\",\n    usd: 0,\n    for: \"Try it out\",\n    features: [\"1 inbox\", \"100 contacts\", \"Email channel\"],\n  },\n  {\n    name: \"Starter\",\n    usd: 15,\n    for: \"Solo support\",\n    features: [\"2 inboxes\", \"2,500 contacts\", \"Email and chat\", \"Saved replies\"],\n  },\n  {\n    name: \"Team\",\n    usd: 45,\n    for: \"Growing support teams\",\n    features: [\"10 inboxes\", \"25,000 contacts\", \"All channels\", \"SLA rules\", \"Reports\"],\n    featured: true,\n  },\n  {\n    name: \"Scale\",\n    usd: 120,\n    for: \"Multi-brand operations\",\n    features: [\"Unlimited inboxes\", \"Unlimited contacts\", \"Custom roles\", \"SSO\", \"Sandbox\"],\n  },\n]\n\nexport default function Pricing18() {\n  const [currency, setCurrency] = useState<Currency>(\"USD\")\n  const [yearly, setYearly] = useState(true)\n  const { symbol, rate } = currencies[currency]\n\n  const format = (usd: number) => {\n    const value = Math.round(usd * rate * (yearly ? 0.83 : 1))\n    return `${symbol}${value.toLocaleString(\"en-US\")}`\n  }\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-col gap-6 border-b border-border pb-8 lg:flex-row lg:items-end lg:justify-between\">\n          <div>\n            <h2 className=\"text-3xl font-semibold tracking-tight md:text-4xl\">\n              Plans and pricing\n            </h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">\n              Prices shown per agent, excluding local taxes.\n            </p>\n          </div>\n          <div className=\"flex flex-wrap items-center gap-4\">\n            <label className=\"flex items-center gap-3 text-sm\">\n              <Switch checked={yearly} onCheckedChange={setYearly} />\n              Billed yearly\n              <span className=\"text-xs text-primary dark:text-primary\">\n                2 months free\n              </span>\n            </label>\n            <div className=\"flex border border-border\">\n              {(Object.keys(currencies) as Currency[]).map((code) => (\n                <button\n                  key={code}\n                  type=\"button\"\n                  onClick={() => setCurrency(code)}\n                  aria-pressed={currency === code}\n                  className={cn(\n                    \"px-3 py-1.5 text-xs font-medium transition-colors\",\n                    currency === code\n                      ? \"bg-foreground text-background\"\n                      : \"text-muted-foreground hover:text-foreground\"\n                  )}\n                >\n                  {code}\n                </button>\n              ))}\n            </div>\n          </div>\n        </div>\n        <div className=\"grid sm:grid-cols-2 lg:grid-cols-4\">\n          {tiers.map((tier, index) => (\n            <div\n              key={tier.name}\n              className={cn(\n                \"flex flex-col border-b border-border py-8 sm:px-6 lg:border-b-0\",\n                index % 2 === 1 && \"sm:border-l\",\n                index > 0 && \"lg:border-l\",\n                tier.featured && \"bg-muted/50\"\n              )}\n            >\n              <p className=\"text-sm font-medium\">{tier.name}</p>\n              <p className=\"text-xs text-muted-foreground\">{tier.for}</p>\n              <p className=\"mt-6 text-4xl font-semibold tracking-tight tabular-nums\">\n                {format(tier.usd)}\n              </p>\n              <p className=\"mt-1 text-xs text-muted-foreground\">\n                per agent / month\n              </p>\n              <Button\n                className=\"mt-6 w-full\"\n                variant={tier.featured ? \"default\" : \"outline\"}\n              >\n                {tier.usd === 0 ? \"Start free\" : \"Start trial\"}\n              </Button>\n              <ul className=\"mt-6 space-y-2.5 text-sm\">\n                {tier.features.map((feature) => (\n                  <li key={feature} className=\"flex items-center gap-2.5\">\n                    <Check className=\"size-3.5 shrink-0 text-muted-foreground\" />\n                    {feature}\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "pricing"
  ]
}