import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'toastStack', standalone: true, }) export class ToastStackPipe implements PipeTransform { transform(index: number, total: number): string { if (index === total - 1) return 'w-300'; if (index === total - 2) return 'w-276 opacity-70 bottom-26'; if (index === total - 3) return 'w-252 opacity-40 bottom-22'; return 'd-none'; } }