import { Component, Input } from '@angular/core';
import { getConfig } from '@iqser/common-ui';
import { Dossier, File, IFileAttributeConfig } from '@red/domain';
import { FileAttributesService } from '@services/entity-services/file-attributes.service';

@Component({
    selector: 'redaction-table-item',
    templateUrl: './table-item.component.html',
    styleUrls: ['./table-item.component.scss'],
})
export class TableItemComponent {
    @Input({ required: true }) file: File;
    @Input({ required: true }) dossier: Dossier;
    @Input({ required: true }) displayedAttributes: IFileAttributeConfig[];
    @Input({ required: true }) dossierTemplateId: string;

    readonly isDocumine = getConfig().IS_DOCUMINE;

    constructor(readonly fileAttributesService: FileAttributesService) {}
}
