import { Component } from '@angular/core'; import { EpdfAnnotationLayer, EpdfAnnotationTemplate, type Annotation, } from '@embedpdf/angular/annotation'; import { ApprovalWidget } from './approval-widget'; @Component({ selector: 'app-annotations', imports: [EpdfAnnotationLayer, EpdfAnnotationTemplate, ApprovalWidget], template: ` `, }) export class Annotations { protected readonly isApproved = (annotation: Annotation) => annotation.subtype === 'stamp' && annotation.name === 'Approved'; }