{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-01",
  "title": "Grouped questions beside the title",
  "description": "The title, topic links and a support action on the left, questions grouped by topic on the right, each answer opening with the panel height transition.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/accordion.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/faqs/faqs-01/index.tsx",
      "content": "import {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/registry/ndeko/ui/accordion';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nimport { QUESTION_GROUPS, SECTION } from './data';\n\nconst FIRST_QUESTION_ID = QUESTION_GROUPS[0].questions[0].id;\n\nexport default function Faqs01() {\n  return (\n    <section className='px-4 py-16 sm:px-6 sm:py-24 lg:px-8'>\n      <div className='mx-auto grid max-w-6xl gap-10 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:gap-16'>\n        <div className='flex flex-col items-start gap-6 lg:sticky lg:top-12 lg:self-start'>\n          <div className='flex flex-col gap-3'>\n            <h2 className='text-2xl font-semibold text-balance sm:text-3xl'>\n              {SECTION.title}\n            </h2>\n            <p className='text-muted-foreground max-w-sm text-base text-pretty'>\n              {SECTION.description}\n            </p>\n          </div>\n          <nav aria-label='Question topics' className='hidden lg:block'>\n            <ul className='flex flex-col gap-0.5'>\n              {QUESTION_GROUPS.map((group) => (\n                <li key={group.id}>\n                  <a\n                    href={`#${group.id}`}\n                    className='text-muted-foreground hover:text-foreground hover:bg-foreground/5 focus-visible:ring-ring/25 -mx-2 flex h-8 items-center rounded-md px-2 text-[13px] transition-colors outline-none focus-visible:ring-[3px]'\n                  >\n                    {group.title}\n                  </a>\n                </li>\n              ))}\n            </ul>\n          </nav>\n          <Button\n            variant='outline'\n            nativeButton={false}\n            render={<a href={SECTION.contactHref} />}\n          >\n            {SECTION.contactLabel}\n          </Button>\n        </div>\n        <div className='flex flex-col gap-10'>\n          {QUESTION_GROUPS.map((group) => (\n            <section\n              key={group.id}\n              id={group.id}\n              aria-labelledby={`${group.id}-title`}\n              className='flex scroll-mt-8 flex-col gap-1'\n            >\n              <h3\n                id={`${group.id}-title`}\n                className='text-primary-ink text-xs font-medium'\n              >\n                {group.title}\n              </h3>\n              <Accordion defaultValue={[FIRST_QUESTION_ID]}>\n                {group.questions.map((item) => (\n                  <AccordionItem key={item.id} value={item.id}>\n                    <AccordionTrigger className='text-sm'>\n                      {item.question}\n                    </AccordionTrigger>\n                    <AccordionContent className='text-sm leading-relaxed text-pretty'>\n                      {item.answer}\n                    </AccordionContent>\n                  </AccordionItem>\n                ))}\n              </Accordion>\n            </section>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/faqs-01/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/faqs/faqs-01/data.ts",
      "content": "export type Question = {\n  id: string;\n  question: string;\n  answer: string;\n};\n\nexport type QuestionGroup = {\n  id: string;\n  title: string;\n  questions: Question[];\n};\n\nexport const SECTION = {\n  title: 'Questions teams ask before switching',\n  description:\n    'Short answers about moving to Driftdesk. If yours is missing, the support team answers it by email.',\n  contactLabel: 'Write to support',\n  contactHref: 'mailto:support@driftdesk.example',\n};\n\nexport const QUESTION_GROUPS: QuestionGroup[] = [\n  {\n    id: 'faqs-01-getting-started',\n    title: 'Getting started',\n    questions: [\n      {\n        id: 'import',\n        question: 'Can we bring our old conversations with us?',\n        answer:\n          'Yes. Connect your current inbox and Driftdesk imports the last twelve months of conversations, with their tags and their authors.',\n      },\n      {\n        id: 'setup',\n        question: 'How long does the setup take?',\n        answer:\n          'Forwarding your support address and inviting the team is enough to start. Routing rules and saved replies can come later.',\n      },\n      {\n        id: 'channels',\n        question: 'Which channels can we answer from Driftdesk?',\n        answer:\n          'Email, the chat widget on your site and contact forms. Each conversation keeps its channel, so replies leave the way the message came in.',\n      },\n    ],\n  },\n  {\n    id: 'faqs-01-billing',\n    title: 'Billing',\n    questions: [\n      {\n        id: 'seats',\n        question: 'Do we pay for people who only read?',\n        answer:\n          'No. A seat is someone who replies to customers. Teammates who read conversations and leave private notes are free.',\n      },\n      {\n        id: 'cancel',\n        question: 'What happens to our data if we cancel?',\n        answer:\n          'You can export every conversation as CSV or JSON for thirty days after cancelling. After that the workspace is deleted.',\n      },\n    ],\n  },\n  {\n    id: 'faqs-01-security',\n    title: 'Data and security',\n    questions: [\n      {\n        id: 'storage',\n        question: 'Where are conversations stored?',\n        answer:\n          'In the region you pick when you create the workspace. Attachments stay in the same region as the messages they belong to.',\n      },\n      {\n        id: 'access',\n        question: 'Can we limit who sees which inbox?',\n        answer:\n          'Yes. Each inbox has its own members, and an admin can hide an inbox from everyone who is not on it.',\n      },\n    ],\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/faqs-01/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "faqs"
  ],
  "type": "registry:block"
}