aboutsummaryrefslogtreecommitdiff
path: root/components/faq-list.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/faq-list.tsx')
-rw-r--r--components/faq-list.tsx26
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>
+ );
+}