{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-05",
  "type": "registry:block",
  "description": "A searchable help center with topic filters and grouped answers.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "input"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/faqs/faqs-05.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Search,\n} from \"@designali/icons\"\n\nimport { Input } from \"@workspace/ui/components/input\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst groups = [\n  {\n    name: \"Billing\",\n    items: [\n      {\n        question: \"Can I upgrade to Designali Pro at any time?\",\n        answer:\n          \"Yes. Upgrade from your account page on designali.com and Pro blocks, templates and icon sets unlock straight away.\",\n      },\n      {\n        question: \"Where do I find my invoices?\",\n        answer:\n          \"Every receipt is emailed after purchase. For copies or billing questions, write to billing@designali.com.\",\n      },\n    ],\n  },\n  {\n    name: \"Account\",\n    items: [\n      {\n        question: \"Can my team share one Designali account?\",\n        answer:\n          \"Each person should have their own account. Studio teammates can still share the same blocks, @designali/icons and @designali/logos in your codebase.\",\n      },\n      {\n        question: \"How do I change the email on my account?\",\n        answer:\n          \"Sign in, open Settings and update your email. If you no longer have access to the old address, contact support@designali.com.\",\n      },\n    ],\n  },\n  {\n    name: \"Code & usage\",\n    items: [\n      {\n        question: \"What stack are the blocks built with?\",\n        answer:\n          \"Next.js, React, TypeScript and Tailwind CSS with shadcn-style UI primitives. Each block copies straight into your project.\",\n      },\n      {\n        question: \"Can I use blocks in client projects?\",\n        answer:\n          \"Yes. Designali blocks, templates and icons can be used in personal and client work under the license listed on each resource.\",\n      },\n    ],\n  },\n]\n\nexport default function Faqs05() {\n  const [query, setQuery] = useState(\"\")\n  const [active, setActive] = useState(\"All\")\n  const term = query.trim().toLowerCase()\n\n  const visible = groups\n    .filter((group) => active === \"All\" || group.name === active)\n    .map((group) => ({\n      ...group,\n      items: group.items.filter(\n        (item) =>\n          !term ||\n          item.question.toLowerCase().includes(term) ||\n          item.answer.toLowerCase().includes(term)\n      ),\n    }))\n    .filter((group) => group.items.length > 0)\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <h2 className=\"text-center text-3xl font-semibold tracking-tight md:text-4xl\">\n          Help center\n        </h2>\n        <p className=\"mt-3 text-center text-sm text-muted-foreground\">\n          Search common questions about Designali blocks, templates and icons, or browse by topic.\n        </p>\n        <div className=\"relative mt-10\">\n          <Search className=\"absolute start-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground\" />\n          <Input\n            value={query}\n            onChange={(event) => setQuery(event.target.value)}\n            placeholder=\"Search questions\"\n            className=\"h-11 ps-9 text-sm md:text-sm\"\n          />\n        </div>\n        <div className=\"mt-4 flex flex-wrap gap-2\">\n          {[\"All\", ...groups.map((group) => group.name)].map((name) => (\n            <button\n              key={name}\n              type=\"button\"\n              onClick={() => setActive(name)}\n              className={cn(\n                \"border border-border px-3 py-1.5 text-xs transition-colors\",\n                active === name\n                  ? \"bg-foreground text-background\"\n                  : \"text-muted-foreground hover:bg-muted hover:text-foreground\"\n              )}\n            >\n              {name}\n            </button>\n          ))}\n        </div>\n        <div className=\"mt-10 space-y-10\">\n          {visible.map((group) => (\n            <div key={group.name}>\n              <h3 className=\"border-b border-border pb-3 text-xs tracking-[0.2em] text-muted-foreground uppercase\">\n                {group.name}\n              </h3>\n              <ul className=\"divide-y divide-border\">\n                {group.items.map((item) => (\n                  <li key={item.question} className=\"py-5\">\n                    <p className=\"text-sm font-medium\">{item.question}</p>\n                    <p className=\"mt-2 text-sm leading-6 text-muted-foreground\">\n                      {item.answer}\n                    </p>\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n          {visible.length === 0 && (\n            <p className=\"border border-dashed border-border p-8 text-center text-sm text-muted-foreground\">\n              No answers match &ldquo;{query}&rdquo;. Try another keyword or{\" \"}\n              <a href=\"#\" className=\"text-foreground underline underline-offset-4\">\n                contact support\n              </a>\n              .\n            </p>\n          )}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "faqs"
  ]
}