"use client";

import { Printer } from "lucide-react";
import { Button } from "@/components/ui/button";

/**
 * Print the certificate sheet.
 *
 * The sheet already carries print rules that hide the surrounding chrome, so
 * this only has to open the browser's dialog. No PDF library: "Save as PDF" in
 * the print dialog covers the export case.
 */
export function PrintCertificateButton() {
  return (
    <Button onClick={() => window.print()}>
      <Printer className="size-4" />
      Cetak
    </Button>
  );
}
