import { Component } from '@angular/core'; import {UserInfo} from "../../interfaces/user.interface"; import {ProfilForm} from "../profil-form/profil-form"; import {ModalNav} from "../modal-nav/modal-nav"; @Component({ selector: 'app-profil', imports: [ ProfilForm, ModalNav ], templateUrl: './profil.html', styleUrl: './profil.css', }) export class Profil { data: UserInfo = { name: 'Mathys Sanchez Vendé', email: 'mathys.sanchez@vende.fr', fonction: 'admin', }; getInitial(name: string): string { if (!name || name.trim() === '') return '?'; return name[0].toUpperCase(); } }