"use client" import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faUser, faIdCard, faGraduationCap, faAddressCard, faSchool, faCalendarAlt, faFlag, faVenus, faMars, faEnvelope, faPhone, faMapMarkerAlt, faPassport } from '@fortawesome/free-solid-svg-icons'; import studentData from '@/data/student-profile.json'; import { IconDefinition } from '@fortawesome/fontawesome-svg-core'; interface InfoRowProps { label: string; value: string | number; icon?: IconDefinition; } const InfoRow = ({ label, value, icon }: InfoRowProps) => (
{icon && } {label}:
{value || "N/A"}
); interface SectionProps { title: string; icon: IconDefinition; children: React.ReactNode; } const Section = ({ title, icon, children }: SectionProps) => (

{title}

{children}
); export default function ProfilePage() { const { personalInfo, birthInfo, previousEducation, enrollmentInfo, contact } = studentData; return (
{/* Header */}

{personalInfo.firstName} {personalInfo.middleName} {personalInfo.lastName}

Индекс: {personalInfo.index} | ЕМБГ: {personalInfo.embg}
{enrollmentInfo.program}
{/* Profile Sections */}
{/* Personal Information */}
{personalInfo.notes && (
Забелешка:
{personalInfo.notes}
)}
{/* Birth Information */}
{/* Previous Education */}
{/* Enrollment Information */}
{/* Contact Information */}
); }