"use client"; import type { CSSProperties } from "react"; import type { DayPart, Season } from "../../lib/palette"; import { Icon, type IconName } from "./icon"; import { usePaletteClock } from "./palette-context"; import styles from "./pixel.module.css"; const PARTS: DayPart[] = ["dawn", "day", "dusk", "night"]; const PART_ICON: Record = { dawn: "sunrise", day: "sun", dusk: "sunset", night: "moon" }; const SEASON_ICON: Record = { spring: "blossom", summer: "icecream", autumn: "maple", winter: "snowflake" }; /** The HUD: today's light and season plus the live palette; clicking skips to the next part of the day. */ export function Hud() { const { dayPart, season, colours, setOverride } = usePaletteClock(); const next = PARTS[(PARTS.indexOf(dayPart) + 1) % PARTS.length]!; return ( ); }