import { Award, Calendar } from 'lucide-react'; interface CertificatePreviewProps { template: { name: string; logo_path?: string | null; template_data: { primaryColor: string; secondaryColor: string; backgroundColor: string; borderColor: string; titleText: string; descriptionText: string; completionText: string; footerText: string; fontFamily: string; }; }; studentName: string; courseName: string; completionDate: string; logoUrl?: string | null; } const CertificatePreview = ({ template, studentName, courseName, completionDate, logoUrl }: CertificatePreviewProps) => { const { template_data } = template; return (
{/* Inner decorative border */}
{/* Logo */} {(logoUrl || template.logo_path) && (
Logo
)} {/* Award Icon if no logo */} {!logoUrl && !template.logo_path && ( )} {/* Title */}

{template_data.titleText}

{/* Description */}

{template_data.descriptionText}

{/* Student Name */}

{studentName}

{/* Completion Text */}

{template_data.completionText}

{/* Course Name */}

{courseName}

{/* Completion Date */}

Completed on: {completionDate}

{/* Footer */}

{template_data.footerText}

); }; export default CertificatePreview;