mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-30 07:21:32 -07:00
b343f1cf5c
- 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
15 lines
472 B
TypeScript
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} />;
|
|
}
|