import Link from 'next/link'
import { Badge } from '@/components/ui/Badge'
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/Avatar'
import { SupportStatusBadge, type SupportStatus } from '@/components/campaign/SupportStatusBadge'
import { cn } from '@/lib/utils'
const getInitials = (name: string) => {
const words = name.trim().split(/\s+/).filter(Boolean)
return words
.slice(0, 2)
.map((word) => word[0])
.join('')
.toLocaleUpperCase('pt-BR')
}
export type LeadershipRowProps = {
name: string
phone?: string
sector?: string
supportStatus: SupportStatus
avatarSrc?: string
className?: string
isPrimaryContact?: boolean
href: string
rowId: string
}
export const LeadershipRow = ({
name,
phone,
sector,
supportStatus,
avatarSrc,
className,
isPrimaryContact = false,
href,
rowId,
}: LeadershipRowProps) => {
const content = (
<>