'use client';
import { useParams } from 'next/navigation';
import { TicketThreadScreen } from '@/components/messaging';

/** /nurse/support/tickets/[id] — the nurse ticket thread (f14). */
export default function NurseTicketThreadPage() {
  const params = useParams<{ id: string }>();
  const id = Number(params.id);
  const ticketId = Number.isInteger(id) && id > 0 ? id : -1;
  return <TicketThreadScreen role="nurse" ticketId={ticketId} />;
}
