import Link from 'next/link' import { CheckCircle2Icon, PencilIcon, StarIcon } from 'lucide-react' import { LeadershipInviteDialogShell } from '@/components/campaign/LeadershipInviteDialogShell' import { LeadershipPrimaryContactAction } from '@/components/campaign/LeadershipPrimaryContactAction' import { SupportStatusBadge } from '@/components/campaign/SupportStatusBadge' import { Badge } from '@/components/ui/Badge' import { Button } from '@/components/ui/button' import { formatLeadershipPhone, leadershipGenderLabels, leadershipSectorLabels, } from '@/utilities/leadershipUi' import type { LeadershipStaffViewModel } from '@/utilities/leadershipViewModels' export const LeadershipDetail = ({ editHref, inviteConsentConfigured, isPrimaryContact, leadership, nucleusId, }: { editHref: string inviteConsentConfigured: boolean isPrimaryContact: boolean leadership: LeadershipStaffViewModel nucleusId: number }) => (
{leadership.confirmedByPerson ? ( ) : null} {isPrimaryContact ? ( ) : null}
Celular
{formatLeadershipPhone(leadership.phone)}
E-mail
{leadership.email ?? 'Não informado'}
Gênero
{leadership.gender ? leadershipGenderLabels[leadership.gender] : 'Não informado'}
Setor
{leadership.sector ? leadershipSectorLabels[leadership.sector] : 'Não informado'}
{leadership.sectorNotes ? (

Observações do setor

{leadership.sectorNotes}

) : null}

Observações internas

{leadership.notes || 'Nenhuma observação interna registrada.'}

{leadership.consentNote ? (

Registro de consentimento externo

{leadership.consentNote}

) : null}
{!isPrimaryContact && leadership.supportStatus === 'engajado' ? ( ) : null}
)