import { Component } from '@angular/core';
import { getConfig, IqserPermissionsService } from '@iqser/common-ui';
import { getCurrentUser } from '@iqser/common-ui/lib/users';
import type { AppConfig, User } from '@red/domain';
import { LicenseService } from '@services/license.service';
import { RouterHistoryService } from '@services/router-history.service';
import { Roles } from '@users/roles';

@Component({
    templateUrl: './license-screen.component.html',
    styleUrls: ['./license-screen.component.scss'],
})
export class LicenseScreenComponent {
    protected readonly config = getConfig<AppConfig>();
    protected readonly roles = Roles;
    protected readonly currentUser = getCurrentUser<User>();
    protected readonly currentYear = new Date().getFullYear();

    constructor(
        readonly licenseService: LicenseService,
        readonly permissionsService: IqserPermissionsService,
        readonly routerHistoryService: RouterHistoryService,
    ) {}
}
