{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-block",
  "type": "registry:block",
  "title": "FAQs Block",
  "description": "A FAQs Block component for displaying frequently asked questions.",
  "files": [
    {
      "path": "src/registry/blocks/faqs-block.tsx",
      "type": "registry:block",
      "content": "import type { ComponentProps } from \"react\";\n\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from \"@/components/ui/accordion\";\nimport { cn } from \"@/lib/utils\";\n\nexport type FAQ = {\n  question: string;\n  answer: string;\n};\n\nexport type FAQsBlockProps = {\n  eyebrow?: string;\n  title?: string;\n  note?: string;\n  supportEmail?: string;\n  lastUpdated?: string;\n  faqs?: FAQ[];\n} & ComponentProps<\"section\">;\n\nconst DEFAULT_FAQS: FAQ[] = [\n  {\n    question: \"Can I send invoices in more than one currency?\",\n    answer:\n      \"Yes. Ledgerline supports 41 currencies. Each client has a default currency, and you can override it on any single invoice. Exchange rates are taken from the European Central Bank at 16:00 CET on the issue date and printed in the invoice footer.\",\n  },\n  {\n    question: \"What happens when a client pays late?\",\n    answer:\n      \"Nothing, unless you ask for it. You can turn on reminders at 3, 7 and 14 days past due, and optionally add a late fee as a fixed amount or a monthly percentage. Reminders come from your own address, not ours.\",\n  },\n  {\n    question: \"Do you take a cut of card payments?\",\n    answer:\n      \"No. Card payments go through your own Stripe or Adyen account and you pay their standard rates. Ledgerline charges a flat monthly fee: €12 for Solo, €29 for Studio with up to five seats.\",\n  },\n  {\n    question: \"Can my accountant get access without a paid seat?\",\n    answer:\n      \"Yes. Invite them as an Accountant from Settings → People. They can read every invoice and export VAT reports, but cannot create, edit or delete anything. Accountant seats are free and unlimited.\",\n  },\n  {\n    question: \"How do I move my data out if I leave?\",\n    answer:\n      \"Settings → Export gives you a ZIP with every invoice as a PDF plus a CSV of clients, line items and payments. It is available on every plan, including after cancellation, for 90 days.\",\n  },\n  {\n    question: \"Is there a limit on the number of clients or invoices?\",\n    answer:\n      \"No limits on either. The only cap is file storage for attachments: 5 GB on Solo and 50 GB on Studio. Invoice PDFs themselves don't count towards it.\",\n  },\n];\n\nexport default function FAQsBlock({\n  eyebrow = \"Questions\",\n  title = \"Things people ask before they switch\",\n  note = \"Most of these come from the first week of a trial. If yours isn't here, it's probably a good one.\",\n  supportEmail = \"support@ledgerline.app\",\n  lastUpdated = \"Updated 2 Sep 2026\",\n  faqs = DEFAULT_FAQS,\n  className,\n  ...props\n}: FAQsBlockProps) {\n  return (\n    <section\n      data-slot=\"faqs-block\"\n      aria-labelledby=\"faqs-block-title\"\n      className={cn(\"bg-background text-foreground w-full\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto grid max-w-6xl gap-12 px-6 py-20 md:grid-cols-12 md:gap-8 md:py-28\">\n        <div className=\"md:col-span-5\">\n          <div className=\"md:sticky md:top-24\">\n            <p className=\"text-muted-foreground font-mono text-xs tracking-wider uppercase\">\n              {eyebrow}\n            </p>\n            <h2\n              id=\"faqs-block-title\"\n              className=\"mt-4 max-w-sm text-3xl font-semibold tracking-tight text-balance md:text-4xl\"\n            >\n              {title}\n            </h2>\n            <p className=\"text-muted-foreground mt-5 max-w-sm text-sm leading-relaxed\">\n              {note}\n            </p>\n            <div className=\"mt-10 border-t pt-5 text-sm\">\n              <p className=\"text-muted-foreground\">Still stuck?</p>\n              <p className=\"mt-1\">\n                Write to{\" \"}\n                <a\n                  href={`mailto:${supportEmail}`}\n                  className=\"decoration-primary font-medium underline underline-offset-4 outline-none hover:decoration-2 focus-visible:ring-2 focus-visible:ring-ring\"\n                >\n                  {supportEmail}\n                </a>\n                . A person reads every message.\n              </p>\n            </div>\n            <p className=\"text-muted-foreground mt-6 font-mono text-[11px] tracking-wider uppercase\">\n              {lastUpdated}\n            </p>\n          </div>\n        </div>\n\n        <div className=\"md:col-span-7\">\n          <Accordion type=\"single\" collapsible className=\"border-t\">\n            {faqs.map((faq, index) => (\n              <AccordionItem\n                key={faq.question}\n                value={`item-${index}`}\n                className=\"border-b last:border-b\"\n              >\n                <AccordionTrigger className=\"group gap-6 rounded-none py-6 text-base font-medium hover:no-underline md:text-lg\">\n                  <span className=\"flex items-baseline gap-5\">\n                    <span\n                      aria-hidden=\"true\"\n                      className=\"text-muted-foreground group-data-[state=open]:text-primary font-mono text-xs tabular-nums\"\n                    >\n                      {String(index + 1).padStart(2, \"0\")}\n                    </span>\n                    <span className=\"decoration-muted-foreground/40 underline-offset-4 group-hover:underline\">\n                      {faq.question}\n                    </span>\n                  </span>\n                </AccordionTrigger>\n                <AccordionContent className=\"text-muted-foreground max-w-prose pb-7 pl-10 text-[15px] leading-relaxed\">\n                  {faq.answer}\n                </AccordionContent>\n              </AccordionItem>\n            ))}\n          </Accordion>\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport { FAQsBlock };\n"
    }
  ],
  "registryDependencies": [
    "accordion"
  ]
}
