From 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 25 Mar 2025 15:55:45 +0900
Subject: initial commit

---
 components/faq/FaqCard.tsx | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 components/faq/FaqCard.tsx

(limited to 'components/faq/FaqCard.tsx')

diff --git a/components/faq/FaqCard.tsx b/components/faq/FaqCard.tsx
new file mode 100644
index 00000000..ef622e67
--- /dev/null
+++ b/components/faq/FaqCard.tsx
@@ -0,0 +1,36 @@
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
+
+export interface FaqItem {
+    title: string;
+    content: string[];
+}
+
+export interface FaqCategory {
+    label: string;  // 카테고리 이름 (식별자로도 사용)
+    items: {
+        title: string;
+        content: string[];
+    }[];
+} 
+
+interface FaqCardProps {
+    item: FaqItem;
+}
+
+export function FaqCard({ item }: FaqCardProps) {
+    return (
+        <Card>
+            <CardHeader>
+                <CardTitle>{item.title}</CardTitle>
+            </CardHeader>
+            <CardContent>
+                {item.content.map((line, index) => (
+                    <div key={index}>
+                        {line}
+                        {index < item.content.length - 1 && <br />}
+                    </div>
+                ))}
+            </CardContent>
+        </Card>
+    )
+} 
\ No newline at end of file
-- 
cgit v1.2.3

