import { Component, inject, Input } from '@angular/core';
import { FilePreviewStateService } from '../../services/file-preview-state.service';
import { OcrProgressBarComponent } from '@shared/components/ocr-progress-bar/ocr-progress-bar.component';
import { NgIf } from '@angular/common';
import { MatProgressBar } from '@angular/material/progress-bar';
import { MatIcon } from '@angular/material/icon';
import { TranslateModule } from '@ngx-translate/core';

@Component({
    selector: 'redaction-readonly-banner',
    templateUrl: './readonly-banner.component.html',
    styleUrls: ['./readonly-banner.component.scss'],
    standalone: true,
    imports: [OcrProgressBarComponent, NgIf, MatProgressBar, MatIcon, TranslateModule],
})
export class ReadonlyBannerComponent {
    protected readonly _state = inject(FilePreviewStateService);
    @Input() customTranslation: string;
}
