'use client'; import Link from 'next/link'; import { Bar, ConfBar, Empty, StatusDot } from '@/components/ui/primitives'; import { fmt, fmtInt, fmtRatio } from '@/lib/format'; import { useLive } from '@/lib/live'; import { pressureColor } from '@/lib/pressure'; import { Time } from '@/lib/time'; import type { Front } from '@/lib/types'; const DIR: Record = { east: '→ E', west: '← W', north: '↑ N', south: '↓ S', northeast: '↗ NE', northwest: '↖ NW', southeast: '↘ SE', southwest: '↙ SW' }; /** Active Pressure Fronts (spec §20) — the signature feature, expressed as source → destination. */ export function Fronts({ initial }: { initial: Front[] | null }) { const live = useLive((s) => s.fronts); const fronts = live ?? initial ?? []; if (!fronts.length) return No Pressure Front detected. Regions are not rising together.; return ( ); }