"use client"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faUser, faIdCard, faAddressCard, faCalendarAlt, faFlag, faVenus, faMars, faEnvelope, faPhone, faMapMarkerAlt, faPassport, } from "@fortawesome/free-solid-svg-icons"; import { useEffect, useState } from "react"; import { getAccessToken } from "@/lib/auth"; import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; import { useTranslation } from 'react-i18next'; type PersonalInfo = { firstName: string; middleName: string; lastName: string; maidenName: string; dateOfBirth: string; gender: string; nationality: string; citizenship: string; scholarship: string; currentPlan: string; registryNumber: string; studyGroup: string; notes?: string; index: string; embg: string; }; type BirthInfo = { placeOfBirth: string; municipalityOfBirth: string; country: string; }; // Present in the API response, but intentionally not shown on professor profile. type PreviousEducation = { type: string; profession: string; average: string | number; language: string; country: string; previousUniversity: string; previousFaculty: string; previousStudyMode: string; }; // Present in the API response, but intentionally not shown on professor profile. type EnrollmentInfo = { enrollmentYear: string | number; status: string; cycle: string; program: string; quota: string; secondaryEducationNumber: string; previousEducationCredits: string | number; }; type Contact = { placeOfResidence: string; municipalityOfResidence: string; country: string; address: string; temporaryAddress: string; phone: string; mobilePhone: string; passportNumber: string; passportExpiryDate: string; email: string; microsoftEmail: string; }; type StudentProfile = { personalInfo: PersonalInfo; birthInfo: BirthInfo; previousEducation: PreviousEducation; enrollmentInfo: EnrollmentInfo; contact: Contact; }; interface InfoRowProps { label: string; value: string | number; icon?: IconDefinition; } const InfoRow = ({ label, value, icon }: InfoRowProps) => { const { t } = useTranslation(); return (