import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { Account } from '../../../models/Account';
import { Title } from '@angular/platform-browser';
import { CommonModule } from '@angular/common';

@Component({
  selector: 'account-settings',
  templateUrl: './settings.component.html',
  imports: [ FormsModule, CommonModule ]
})
export class SettingsComponent {
  user!: Account;
  errorMsgs: string[] = [];
  returnURL: string = '/';

  constructor( private http: HttpClient, private router: Router, private route: ActivatedRoute, private title: Title ) {
    this.title.setTitle("Settings | Mistox");
    this.route.queryParams.subscribe(params => {
      this.returnURL = params['returnURL'] || '/';
    });
  }

  onSubmit() {
 
  }
}