/* Tweaks island — React panel that drives the vanilla page via window.applyTweaks. */ function BlockTogetherTweaks() { const [t, setTweak] = useTweaks(window.TWEAK_DEFAULTS); // push every change (and the initial mount) into the page React.useEffect(() => { if (window.applyTweaks) window.applyTweaks(t); }, [t]); const ACCENTS = ["#ffce3a", "#46a8ff", "#7ae15b", "#e15bb4"]; return ( setTweak("accent", v)} /> setTweak("tagline", v)} /> setTweak("worldSky", v)} /> setTweak("parade", v)} /> ); } (function mountTweaks() { function go() { const root = document.getElementById("tweak-root"); if (!root || !window.useTweaks) { setTimeout(go, 60); return; } ReactDOM.createRoot(root).render(); } go(); })();