import {
ChangeDetectionStrategy,
Component,
computed,
inject,
input,
output,
} from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialog } from '@angular/material/dialog';
import { MatIconModule } from '@angular/material/icon';
import { TranslatePipe } from '@ngx-translate/core';
import {
ELECTRON_BRIDGE_APP_UPDATE_STATUSES,
ElectronBridgeAppUpdateStatus,
} from '@iptvnator/shared/interfaces';
import { AppUpdateInstallService } from './services/app-update-install.service';
/**
* The update notification itself: the card with its download, install and
* release-notes actions. `AppUpdateNotificationPanelComponent` defers it
* until an update is available, so this file and its Material imports must
* stay out of every file that loads with the app.
*/
@Component({
selector: 'app-update-notification-card',
imports: [MatButtonModule, MatIconModule, TranslatePipe],
template: `
system_update
{{ 'SETTINGS.APP_UPDATE_TITLE' | translate }}