From e0dfb55c5457aec489fc084c4567e791b4c65eb1 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 26 Mar 2025 00:37:41 +0000
Subject: 3/25 까지의 대표님 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 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

