From 1bcf5c6806d03b26f73d1436e00972d2a337c5a8 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:47:30 +0000 Subject: [PATCH] Deploy --- .../sections/LegalPoliciesSection.tsx | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 src/components/sections/LegalPoliciesSection.tsx diff --git a/src/components/sections/LegalPoliciesSection.tsx b/src/components/sections/LegalPoliciesSection.tsx new file mode 100644 index 0000000..d38d8de --- /dev/null +++ b/src/components/sections/LegalPoliciesSection.tsx @@ -0,0 +1,87 @@ +'use client' + +import { useState } from 'react' +import { useEmDashContent } from '@/hooks/useEmDashContent' +import { ChevronDown } from 'lucide-react' + +interface PolicyItem { + title: string + body: string +} + +export default function LegalPoliciesSection() { + const { items, loading } = useEmDashContent('policies') + const [openIndex, setOpenIndex] = useState(null) + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + const policies = items.map((item) => item.data as PolicyItem) + + const toggle = (index: number) => { + setOpenIndex(openIndex === index ? null : index) + } + + return ( + + ) +} \ No newline at end of file