import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
import { BaseDialogComponent } from '@iqser/common-ui';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { IAudit } from '@red/domain';
import { DossierStatesService } from '@services/entity-services/dossier-states.service';
import { KeyValue } from '@angular/common';

interface DialogData {
    readonly auditEntry: IAudit;
}

@Component({
    selector: 'redaction-audit-info-dialog',
    templateUrl: './audit-info-dialog.component.html',
    styleUrls: ['./audit-info-dialog.component.scss'],
    changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AuditInfoDialogComponent extends BaseDialogComponent {
    constructor(
        private readonly _dossierStatesService: DossierStatesService,
        protected readonly _dialogRef: MatDialogRef<AuditInfoDialogComponent>,
        @Inject(MAT_DIALOG_DATA) readonly data: DialogData,
    ) {
        super(_dialogRef, false);
    }

    readonly originalOrder = (a: KeyValue<string, string>, b: KeyValue<string, string>): number => 0;

    async save(): Promise<void> {
        return;
    }
}
