/**
* Header Component
* Top bar with callsign, clocks, weather, and controls
*/
import React from 'react';
export const Header = ({
config,
utcTime,
utcDate,
localTime,
localDate,
localWeather,
spaceWeather,
use12Hour,
onTimeFormatToggle,
onSettingsClick,
onFullscreenToggle,
isFullscreen
}) => {
return (
{/* Callsign & Settings */}
{config.callsign}
v3.7.0
{/* UTC Clock */}
UTC
{utcTime}
{utcDate}
{/* Local Clock - Clickable to toggle 12/24 hour format */}
LOCAL
{localTime}
{localDate}
{/* Weather & Solar Stats */}
{localWeather?.data && (
{localWeather.data.icon}
{localWeather.data.temp}°F/{Math.round((localWeather.data.temp - 32) * 5/9)}°C
)}
SFI
{spaceWeather?.data?.solarFlux || '--'}
K
= 4 ? 'var(--accent-red)' : 'var(--accent-green)', fontWeight: '700' }}>
{spaceWeather?.data?.kIndex ?? '--'}
SSN
{spaceWeather?.data?.sunspotNumber || '--'}
{/* Settings & Fullscreen Buttons */}
☕ Donate
);
};
export default Header;