import React, { useRef } from 'react'; import { Head, Link } from '@inertiajs/react'; import { Button } from '@/Components/ui/button'; import { Download, Share2, Home } from 'lucide-react'; // import { useReactToPrint } from 'react-to-print'; export default function ShowCertificate({ course, student, date, certificate_id }: any) { const componentRef = useRef(null); const handlePrint = () => { window.print(); }; return (
{/* Actions Bar */}
|

Sertifikat Kelulusan

{/* Certificate Canvas */}
{/* Border/Frame */}
{/* Content */}
{/* Header */}
NihonBuzz

Sertifikat Penyelesaian

NihonBuzz Academy

{/* Body */}

Diberikan dengan bangga kepada

{student.name}

Atas keberhasilan menyelesaikan kursus
{course.title}

{/* Footer */}

{date}

Tanggal

Signature {/* Placeholder */}

NihonBuzz Team

Instruktur

{/* ID */}
ID: {certificate_id}
); }