import type { ClientProfil } from '../types_front';
export async function openProfilePopup(profil: ClientProfil) {
const modalname = document.getElementById("modal-name") ?? null;
if (modalname)
modalname.innerHTML =
`
Profile of ${profil.user}
Login status: ${profil.loginName ?? 'Guest'}
Login ID: ${profil.userID ?? ''}
About: ${profil.text}
`;
const profilList = document.getElementById("profile-modal") ?? null;
if (profilList)
profilList.classList.remove("hidden");
}