'use client' import { useEmDashContent } from '@/hooks/useEmDashContent' import Image from 'next/image' import Link from 'next/link' import { Card, CardContent, CardFooter, CardTitle } from '@/components/ui/Card' import Button from '@/components/ui/Button' export default function CommunityJusticeSection() { const { items, loading } = useEmDashContent('campaigns') if (loading) { return (
) } if (items.length === 0) return null return (

Community Justice

Pro bono initiatives and legal workshops that uplift our communities

{items.slice(0, 6).map((item) => { const d = item.data as { title?: string; headline?: string; body?: string; cta_text?: string; image?: string } const img = d.image || '' const title = d.title || d.headline || 'Campaign' const desc = d.body || '' const cta = d.cta_text || 'Get Involved' return (
{img ? ( {title} ) : (
)}
{title} {desc && (

{desc}

)}
) })}
) }