'use client'; import { useTranslations } from 'next-intl'; import { formatMobileForDisplay } from '@/lib/phone'; import { Patient } from '@/types/patient'; interface PatientSummaryCardProps { patient?: Patient; } export function PatientSummaryCard({ patient }: PatientSummaryCardProps) { const t = useTranslations('patients'); if (!patient) { return (

{t('selectPatient')}

); } return (

{patient.firstName} {patient.lastName}

{t('mobileLabel')} {formatMobileForDisplay(patient.mobile)}

{t('emailLabel')} {patient.email || t('emptyValue')}

{t('statusLabel')}{' '} {patient.isActive ? t('statusActive') : t('statusInactive')}

); }