import { DatePipe, NgFor, NgIf } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { constants } from '@enums/constants.enum';
import { Privacy, ProfileData } from '@interfaces/common';
import { IonicModule } from '@ionic/angular';

@Component({
  selector: 'app-shravak-other-about',
  templateUrl: './shravak-other-about.page.html',
  styleUrls: ['./shravak-other-about.page.scss'],
  standalone: true,
  imports: [IonicModule, NgIf, NgFor, DatePipe]
})
export class ShravakOtherAboutPage implements OnInit {
  userProfileData: ProfileData;
  privacyList: Privacy[] = constants.privacy;
  relationArray = ['', 'Son', 'Daughter'];
  constructor(
    private router: Router
  ) { }

  ngOnInit() {
    if (this.router.getCurrentNavigation().extras.state) {
      this.userProfileData = this.router.getCurrentNavigation().extras.state.userData;
    }
  }
}
