'use client'; import { useTranslations } from 'next-intl'; import { LabCaseCommentsPanel } from '@/components/ui/lab/LabCaseCommentsPanel'; import { treatmentsApi } from '@/lib/api/treatments'; import type { TreatmentDetailDraft } from '@/types/treatment'; interface DetailLabCaseCommentsSectionProps { detail: TreatmentDetailDraft; canPost: boolean; onError?: (message: string) => void; } export function DetailLabCaseCommentsSection({ detail, canPost, onError, }: DetailLabCaseCommentsSectionProps) { const t = useTranslations('treatment'); const caseId = detail.labCaseId; if (!caseId) return null; return (
{t('labCaseCommentsTitle')}
{t('labCaseCommentsHint')}