import { Component, inject, computed, Signal } from '@angular/core'; import { DatabaseService } from '../../../core/services'; interface LibraryItem { label: string; icon: string; filter: string; count: Signal; } @Component({ selector: 'app-library', standalone: true, template: ` `, }) export class LibraryComponent { readonly db = inject(DatabaseService); readonly items: LibraryItem[] = [ { label: 'All Fonts', icon: 'folder', filter: 'all', count: computed(() => this.db.systemStats()?.rowCount ?? 0) }, { label: 'My Favorites', icon: 'favorite', filter: 'favorites', count: computed(() => this.db.systemStats()?.favoriteCount ?? 0) }, { label: 'System Fonts', icon: 'computer', filter: 'system', count: computed(() => this.db.systemStats()?.systemCount ?? 0) }, ]; }