import { Award } from 'lucide-react'; import type { Certification } from '../../data/Certification'; interface CertificationsSectionProps { title?: string; subtitle?: string; certifications?: Certification[]; } export default function CertificationsSection({ title = "Certifications & Achievements", subtitle = "My professional qualifications and continuous learning", certifications = [ { name: "Prompt Engineering from Scratch", issuer: "Udemy", year: "2025", icon: "" }, { name: "Understanding Typescript", issuer: "Udemy", year: "2025", icon: "" }, { name: "Angular Step by Step", issuer: "Udemy", year: "2020", icon: "" }, { name: "Angular and Typescript", issuer: "LinkedIn TestDome", year: "2020", icon: "" }, { name: "Bachelor of Science in Computer Science", issuer: "TU Darmstadt", year: "2015", icon: "" } ] }: CertificationsSectionProps) { // Sort certifications by year in descending order (newest first) const sortedCertifications = [...certifications].sort((a, b) => { return parseInt(b.year) - parseInt(a.year); }); return (
{/* Section Header */}

{title}

{subtitle}

{/* Certifications Grid */}
{sortedCertifications.map((cert, index) => (
{cert.icon ? ( {cert.issuer} ) : ( )}

{cert.name}

{cert.issuer}

{cert.year}
))}
); }