"use client";
import { useEffect } from "react";

export default function MarkTicketRead({ ticketId }: { ticketId: string }) {
  useEffect(() => {
    fetch(`/api/tickets/${ticketId}/read`, { method: 'POST', credentials: 'include' }).catch(() => {});
  }, [ticketId]);
  return null;
}

