Files
SubMiner/stats/src/components/library/CoverImage.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

18 lines
541 B
TypeScript

import { RetryingCoverImage } from '../common/RetryingCoverImage';
import { resolveMediaCoverApiUrl } from '../../lib/media-library-grouping';
interface CoverImageProps {
videoId: number;
title: string;
src?: string | null;
className?: string;
}
export function CoverImage({ videoId, title, src = null, className = '' }: CoverImageProps) {
const resolvedSrc = src?.trim() || resolveMediaCoverApiUrl(videoId);
return (
<RetryingCoverImage src={resolvedSrc} alt={title} fallbackLabel={title} className={className} />
);
}