import { Component, OnInit } from '@angular/core';
import { IObjectController } from '@objects-view/interfaces/object-controller';
import { StaticObjectController } from '@objects-view/static-object-controller';
import { ActivatedRoute } from '@angular/router';
import { TermsOfServiceAgreeFormComponent } from '../tabs/terms-of-service-agree-form/terms-of-service-agree-form.component';

@Component({
  selector: 'app-agree-with-terms-of-service',
  templateUrl: './agree-with-terms-of-service.component.html',
  styleUrls: ['./agree-with-terms-of-service.component.scss']
})
export class AgreeWithTermsOfServiceComponent implements OnInit {
  public objectController: IObjectController = new StaticObjectController({
    header: {
      title: {
        text: $localize`Terms of service`,
      }
    },
    tabs: [
      {
        tabName: $localize`Agree with terms of service`,
        tabIdentifier: 'agree-with-terms-of-service',
        component: TermsOfServiceAgreeFormComponent,
      },
    ],
  }, null, {
    tos: this.activatedRoute.snapshot.data.tos,
  });

  constructor(private activatedRoute: ActivatedRoute) { }

  ngOnInit(): void {
  }

}
