'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 && ( )}
) })}
) }