Files
SubMiner/stats/src/components/anime/AnimeCoverImage.tsx
T
sudacode b343f1cf5c feat: show mining frame toast on OSD and speed up stats session deletes
- Flash mined-frame screenshot as in-overlay image toast for OSD card notifications
- Batch cover art from stored DB blobs via POST /api/stats/covers (no extra AniList fetches)
- Show delete progress toast on stats home and sessions pages
- Refresh only affected rollups on session delete instead of full rebuild
- Rebuild lifetime summaries with aggregate SQL CTEs instead of per-session loop
2026-06-06 01:50:15 -07:00

15 lines
472 B
TypeScript

import { RetryingCoverImage } from '../common/RetryingCoverImage';
import { getStatsClient } from '../../hooks/useStatsApi';
interface AnimeCoverImageProps {
animeId: number;
title: string;
className?: string;
}
export function AnimeCoverImage({ animeId, title, className = '' }: AnimeCoverImageProps) {
const src = getStatsClient().getAnimeCoverUrl(animeId);
return <RetryingCoverImage src={src} alt={title} fallbackLabel={title} className={className} />;
}