// Trends tab — five chart panels driven by /api/sleep-trends.
const { thirdsPhases, phaseAvg, eventsToAnnotations, fmtBedtime } = window.HC_DATA;
function Row({ label, value, color, theme }) {
return (
{[['full', 'Full history'], ['4w', 'Last 4 weeks']].map(([k, label]) => (
))}
fmtBedtime(v)}
phases={phases} annotations={annotations}
range={range} windowDays={windowDays} />
— raw · ewma · 14d ma · vol band on bedtime —
);
}
window.TrendsTab = TrendsTab;