import { Component, OnInit } from '@angular/core';

import { SchoolService } from '../../../services/school.service';
import { LoginService } from '../../../services/login.service';

import { SchoolData } from '../../../structures/school-data';

import * as Globals from '../../../globals';

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

  schoolData: SchoolData | null = null;

  targetAfterSubmit: string = Globals.pages.schoolProfile.path;

  constructor(private loginService: LoginService, private schoolService: SchoolService) { 
    this.loginService.getLoggedSchool().then(
      (data) => this.schoolData = data
    );
  }

  ngOnInit(): void {
  }

}
