import { Component, OnInit } from '@angular/core';
import { IObjectController } from '@objects-view/interfaces/object-controller';
import { UsersAuthorizationComponent } from '../tabs/users-authorization/users-authorization.component';
import { UserGroupsAuthorizationComponent } from '../tabs/user-groups-authorization/user-groups-authorization.component';
import { StaticObjectController } from '@objects-view/static-object-controller';

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

  public objectController: IObjectController = new StaticObjectController({
    header: {
      title: {
        text: $localize`Authorization settings`,
      }
    },
    tabs: [
      {
        tabName: $localize`Users`,
        tabIdentifier: 'users',
        component: UsersAuthorizationComponent,
      },
      {
        tabName: $localize`User groups`,
        tabIdentifier: 'user-groups',
        component: UserGroupsAuthorizationComponent,
      }
    ],
  });

  constructor() { }

  ngOnInit(): void {
  }

}
