diff options
| author | Arslaan Pathan <[email protected]> | 2026-08-31 17:00:12 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-08-31 17:00:12 +1200 |
| commit | 5936aedd3d853514a31ebece23175255fb2415c3 (patch) | |
| tree | 829560cffbbb4fde805319c08f984667e498eaf5 /components/faq-list.tsx | |
| download | the-agentic-cloud-5936aedd3d853514a31ebece23175255fb2415c3.tar.xz the-agentic-cloud-5936aedd3d853514a31ebece23175255fb2415c3.zip | |
Initial commit
Diffstat (limited to 'components/faq-list.tsx')
| -rw-r--r-- | components/faq-list.tsx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/components/faq-list.tsx b/components/faq-list.tsx new file mode 100644 index 0000000..564df71 --- /dev/null +++ b/components/faq-list.tsx @@ -0,0 +1,26 @@ +"use client"; + +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from "@/components/ui/accordion"; +import { faqs } from "@/lib/content"; + +export function FaqList() { + return ( + <Accordion className="w-full" defaultValue={["what"]}> + {faqs.map((item) => ( + <AccordionItem key={item.id} value={item.id}> + <AccordionTrigger className="py-4 text-base hover:no-underline"> + {item.q} + </AccordionTrigger> + <AccordionContent className="text-muted-foreground leading-relaxed"> + {item.a} + </AccordionContent> + </AccordionItem> + ))} + </Accordion> + ); +} |
