import {Component, OnInit} from '@angular/core';
import {ProfileService} from '../../../services/profile.service';
import {I18nService} from '../../../services/i18n.service';

@Component({
  selector: 'app-account-profile',
  templateUrl: './profile.component.html',
  styleUrls: ['./profile.component.scss']
})
export class ProfileComponent implements OnInit {

  profileFields = [];
  types = ["TEXT", "NUMBER", "DATE", "URL", "EMAIL", "BOOL"];
  visibilities = ["PRIVATE", "PROTECTED", "PUBLIC"];

  constructor(private profileService: ProfileService, private i18n: I18nService) {}

  ngOnInit(): void {
    this.profileService.getAll().subscribe((data: any) => {
      this.profileFields = data;
    })
  }

}
