import { Component, computed, inject, signal } from '@angular/core'; import { RouterLink } from '@angular/router'; import { firstValueFrom } from 'rxjs'; import { AuthService, isValidEmail } from '@africanies/africanies-core'; import { AlertComponent, ButtonComponent, TextInputComponent, } from '@africanies/africanies-ui'; import { playgroundErrorMessage } from './playground-notify'; /** * Live {@link AuthService.forgot} try-out for the SDK API page. */ @Component({ selector: 'app-playground-forgot-password', standalone: true, imports: [AlertComponent, ButtonComponent, TextInputComponent, RouterLink], template: `
`, }) export class PlaygroundForgotPasswordComponent { private readonly authApi = inject(AuthService); protected readonly email = signal(''); protected readonly sending = signal(false); protected readonly successMessage = signal