/** * @copyright 2026 NHCarrigan * @license Naomi's Public License * @author Naomi Carrigan */ import { Component, OnInit, inject, signal, computed } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SuggestionService } from '../../services/suggestion.service'; import { AuthService } from '../../services/auth.service'; import { PaginationComponent } from '../shared/pagination.component'; import { Suggestion, SuggestionStatus, SuggestionEntity } from '@library/shared-types'; @Component({ selector: 'app-my-suggestions', standalone: true, imports: [CommonModule, PaginationComponent], template: `
Track the status of items you've suggested to Naomi
Please log in to view your suggestions.
You haven't made any suggestions yet!
Visit any collection page and click "Suggest a..." to recommend something to Naomi.
Platform: {{ suggestion.gameData.platform }}
} } @if (suggestion.bookData) { @if (suggestion.bookData.author) {Author: {{ suggestion.bookData.author }}
} } @if (suggestion.musicData) { @if (suggestion.musicData.artist) {Artist: {{ suggestion.musicData.artist }}
} } @if (suggestion.artData) { @if (suggestion.artData.artist) {Artist: {{ suggestion.artData.artist }}
} } @if (suggestion.showData) { @if (suggestion.showData.type) {Type: {{ suggestion.showData.type }}
} } @if (suggestion.mangaData) { @if (suggestion.mangaData.author) {Author: {{ suggestion.mangaData.author }}
} }