<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <p *ngIf="allowDelete === true" i18n>
      Are you sure you want to delete invoice {{invoice.display_number}}?
    </p>
    <div *ngIf="allowDelete === false">
      <p i18n>There are still transactions associated with this invoice.</p>
      <p i18n>Please delete or refund any transactions before deleting invoice.</p>
    </div>
  </ng-template>
</app-common-dialog>
