/** * This file is part of Anis Client. * * @copyright Laboratoire d'Astrophysique de Marseille / CNRS * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Component, Input } from '@angular/core'; import { DownloadFile } from 'src/app/instance/store/models'; /** * @class * @classdesc Search result reminder component. */ @Component({ selector: 'app-download-file-tab', templateUrl: 'download-file-tab.component.html', styleUrls: ['download-file-tab.component.scss'] }) export class DownloadFileTabComponent { @Input() downloadedFiles: DownloadFile[]; getType(value: number): 'success' | 'info' { if (value < 100) { return 'info'; } return 'success'; } }