/* editor.jsx — the live-editing form. One section visible at a time (chosen in nav). */ const { useState, useRef, useEffect } = React; const uid = () => Math.random().toString(36).slice(2, 9); const NOW_MY = new Date().toLocaleDateString("en-US", { month: "short", year: "numeric" }); const NAV_ORDER = ["basics","summary","experience","projects","education","skills","certs"]; const NAV_LABELS = { basics:"Personal details", summary:"Summary", experience:"Experience", projects:"Projects", education:"Education", skills:"Skills", certs:"Certifications" }; function NextBtn({ section, setSection }) { const idx = NAV_ORDER.indexOf(section); if (idx < 0 || idx >= NAV_ORDER.length - 1) return null; const next = NAV_ORDER[idx + 1]; return (