'use client'; import { useTranslations } from 'next-intl'; import { formatToothList } from '@/components/treatment/prosthesisTypeDisplay'; import { ProsthesisStackedTypeLabel } from '@/components/ui/lab/ProsthesisStackedTypeLabel'; import type { ProsthesisTaskGroup } from '@/components/lab/taskListGrouping'; import type { ProsthesisCatalogEntry } from '@/types/treatment-catalog'; interface TaskProsthesisGroupHeaderProps { group: ProsthesisTaskGroup; prosthesisCatalog: readonly ProsthesisCatalogEntry[]; } export function TaskProsthesisGroupHeader({ group, prosthesisCatalog, }: TaskProsthesisGroupHeaderProps) { const t = useTranslations('tasks'); const tTreatment = useTranslations('treatment'); const archLabels = { UA: tTreatment('selectedArchUpper'), LA: tTreatment('selectedArchLower'), }; return (
{t('teethLabel', { teeth: formatToothList(group.teeth, archLabels) })}
); }