mirror of
https://github.com/bitwarden/clients.git
synced 2026-02-09 10:23:47 +08:00
25 lines
582 B
TypeScript
25 lines
582 B
TypeScript
|
|
import { Component, Input } from "@angular/core";
|
||
|
|
|
||
|
|
import { EmailIcon } from "../icons/email.icon";
|
||
|
|
import { RecoveryCodeIcon } from "../icons/recovery.icon";
|
||
|
|
import { TOTPIcon } from "../icons/totp.icon";
|
||
|
|
import { WebAuthnIcon } from "../icons/webauthn.icon";
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: "auth-two-factor-icon",
|
||
|
|
templateUrl: "./two-factor-icon.component.html",
|
||
|
|
})
|
||
|
|
export class TwoFactorIconComponent {
|
||
|
|
@Input() provider: any;
|
||
|
|
@Input() name: string;
|
||
|
|
|
||
|
|
protected readonly Icons = {
|
||
|
|
TOTPIcon,
|
||
|
|
EmailIcon,
|
||
|
|
WebAuthnIcon,
|
||
|
|
RecoveryCodeIcon,
|
||
|
|
};
|
||
|
|
|
||
|
|
constructor() {}
|
||
|
|
}
|