import { DialogRef } from "@angular/cdk/dialog"; import { CommonModule } from "@angular/common"; import { Component } from "@angular/core"; import { JslibModule } from "@bitwarden/angular/jslib.module"; import { AsyncActionsModule, ButtonModule, DialogModule } from "@bitwarden/components"; import { ExportComponent } from "@bitwarden/vault-export-ui"; @Component({ templateUrl: "export-desktop.component.html", standalone: true, imports: [ CommonModule, JslibModule, DialogModule, AsyncActionsModule, ButtonModule, ExportComponent, ], }) export class ExportDesktopComponent { protected disabled = false; protected loading = false; constructor(public dialogRef: DialogRef) {} /** * Callback that is called after a successful export. */ protected async onSuccessfulExport(organizationId: string): Promise { this.dialogRef.close(); } }