'use client' import { useEmDashContent } from '@/hooks/useEmDashContent' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' import Image from 'next/image' export default function AdvocateProfilesSection() { const { items, loading } = useEmDashContent('team_members') if (loading) { return (
) } if (!items || items.length === 0) return null return (

Meet Your Defence Team

Seasoned advocates and attorneys who bring decades of courtroom experience to every case.

{items.map((item) => { const d = item.data as { name?: string; role?: string; bio?: string; image?: string } return (
{d.image ? ( {d.name ) : (
{d.name?.charAt(0) ?? '?'}
)}
{d.name ?? 'Advocate'} {d.role && ( {d.role} )} {d.bio && (

{d.bio}

)}
) })}
) }