import { buttonClasses } from "@/components/ui/button";

/** Native `<a>`, not next/link — this triggers a real file download (Content-Disposition set server-side), not a client-side route change. */
export function DownloadTicketButton({ ticketId }: { ticketId: number }) {
  return (
    <a href={`/api/dashboard/tickets/${ticketId}/pdf`} className={buttonClasses("secondary", "md", "w-full sm:w-auto")}>
      Download PDF
    </a>
  );
}
