{t('noDetails')}
) : ('use client'; import { useTranslations } from 'next-intl'; import { TreatmentHistoryDetailLine } from '@/components/ui/treatment/TreatmentHistoryDetailLine'; import type { PastTreatment } from '@/types/treatment'; import type { TreatmentCatalogEntry } from '@/types/treatment-catalog'; interface PastTreatmentsPanelProps { items: PastTreatment[]; treatmentCatalog: TreatmentCatalogEntry[]; loading?: boolean; selectedPreviewId?: string | null; onSelectTreatment?: (treatment: PastTreatment) => void; } export function PastTreatmentsPanel({ items, treatmentCatalog, loading, selectedPreviewId, onSelectTreatment, }: PastTreatmentsPanelProps) { const t = useTranslations('treatment'); return (
{t('historySubtitle')}
{t('loadingHistory')}
} {!loading && items.length === 0 && ({t('historyEmpty')}
)}{t('noDetails')}
) : (