'use client'; import { useTranslations } from 'next-intl'; import { AlertTriangle } from 'lucide-react'; import { Button } from '@/components/ui/shared/Button'; import { DetailLabSendBadge } from '@/components/ui/treatment/DetailLabSendBadge'; import { TreatmentTypeBadge } from '@/components/ui/treatment/TreatmentTypeBadge'; import { treatmentTypeLabelFromCatalog } from '@/components/shared/treatmentTypeDisplay'; import type { LabDispatchAttentionItem } from '@/components/treatment/labDispatchAttention'; import type { LinkedOrganizationOption } from '@/types/treatment'; import type { TreatmentCatalogEntry } from '@/types/treatment-catalog'; interface LabDispatchAttentionPanelProps { items: LabDispatchAttentionItem[]; treatmentCatalog: TreatmentCatalogEntry[]; labDependentCodes: Set; orgs?: LinkedOrganizationOption[]; onGoToDispatch: (item: LabDispatchAttentionItem) => void; compact?: boolean; } export function LabDispatchAttentionPanel({ items, treatmentCatalog, labDependentCodes, orgs, onGoToDispatch, compact = false, }: LabDispatchAttentionPanelProps) { const t = useTranslations('treatment'); if (items.length === 0) { return null; } return (
{!compact ? (

{t('labAttentionTitle')}

{t('labAttentionSubtitle')}

) : null}
); }