2024-12-09 11:58:50 -08:00
|
|
|
// FIXME: Update this file to be type safe and remove this and next line
|
|
|
|
|
// @ts-strict-ignore
|
2024-06-27 19:14:21 +02:00
|
|
|
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() {}
|
|
|
|
|
}
|