mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-29 19:21:33 -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
18 lines
541 B
TypeScript
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} />
|
|
);
|
|
}
|