import { Directive, TemplateRef, inject } from '@angular/core'; import type { NtfNotification } from '../../types/notification.types'; /** Template context for custom notification item rendering */ export interface NtfItemDefContext { $implicit: NtfNotification; notification: NtfNotification; index: number; isRead: boolean; } @Directive({ selector: 'ng-template[ntfItemDef]', standalone: true, }) export class NtfItemDefDirective { readonly templateRef = inject(TemplateRef); static ngTemplateContextGuard( _dir: NtfItemDefDirective, ctx: unknown, ): ctx is NtfItemDefContext { return true; } }