import { Component, EventEmitter, Input, Output } from "@angular/core"; import { SendType } from "@bitwarden/common/enums/sendType"; import { SendView } from "@bitwarden/common/models/view/sendView"; @Component({ selector: "app-send-list", templateUrl: "send-list.component.html", }) export class SendListComponent { @Input() sends: SendView[]; @Input() title: string; @Input() disabledByPolicy = false; @Output() onSelected = new EventEmitter(); @Output() onCopySendLink = new EventEmitter(); @Output() onRemovePassword = new EventEmitter(); @Output() onDeleteSend = new EventEmitter(); sendType = SendType; selectSend(s: SendView) { this.onSelected.emit(s); } copySendLink(s: SendView) { this.onCopySendLink.emit(s); } removePassword(s: SendView) { this.onRemovePassword.emit(s); } delete(s: SendView) { this.onDeleteSend.emit(s); } }