From 9f7cd8cbf441a1503aae0b60b667da71c1ea569b Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:47:19 +0000 Subject: [PATCH] Deploy --- .../sections/CurrentCampaignsSection.tsx | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/components/sections/CurrentCampaignsSection.tsx diff --git a/src/components/sections/CurrentCampaignsSection.tsx b/src/components/sections/CurrentCampaignsSection.tsx new file mode 100644 index 0000000..4f9c54e --- /dev/null +++ b/src/components/sections/CurrentCampaignsSection.tsx @@ -0,0 +1,84 @@ +'use client' + +import { useEmDashContent } from '@/hooks/useEmDashContent' +import Image from 'next/image' +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' +import Button from '@/components/ui/Button' + +export default function CurrentCampaignsSection() { + const { items, loading } = useEmDashContent('campaigns') + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+
+

Community Campaigns

+

+ Justice doesn\'t end in the courtroom. See how we\'re giving back. +

+
+ +
+ {items.map((item) => { + const d = item.data as { + title?: string + headline?: string + body?: string + cta_text?: string + image?: string + } + return ( + + {d.image && ( +
+ {d.title +
+ )} + + {d.title && {d.title}} + {d.headline && ( +

{d.headline}

+ )} +
+ + {d.body && ( +

{d.body}

+ )} + {d.cta_text && ( + + )} +
+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file