import type { NightModeStatus } from './types' interface StatusCardsProps { status: NightModeStatus | null runningCount: number stoppedCount: number } export function StatusCards({ status, runningCount, stoppedCount }: StatusCardsProps) { return (
{/* Current Time */}
{status?.current_time || '--:--'}
Aktuelle Zeit
{/* Next Action */}
{status?.next_action === 'shutdown' ? ( ) : ( )}
{status?.next_action_time || '--:--'}
{status?.next_action === 'shutdown' ? 'Naechste Abschaltung' : 'Naechster Start'}
{/* Countdown */}
{status?.time_until_next_action || '-'}
Countdown
{/* Running / Stopped */}
{runningCount} / {stoppedCount}
Aktiv / Gestoppt
) }