import { formatDuration, formatRelativeDate, formatNumber } from '../../lib/formatters'; import type { SessionSummary } from '../../types/stats'; interface MediaSessionListProps { sessions: SessionSummary[]; } export function MediaSessionList({ sessions }: MediaSessionListProps) { if (sessions.length === 0) { return
No sessions recorded
; } return (

Session History

{sessions.map((s) => (
{formatRelativeDate(s.startedAtMs)} ยท {formatDuration(s.activeWatchedMs)} active
{formatNumber(s.cardsMined)}
cards
{formatNumber(s.wordsSeen)}
words
))}
); }