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

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