/* Tweaks panel for the Olga Guryeva site.
Applies changes to the vanilla page via window.__site* helpers. */
const { useEffect } = React;
const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
"accent": "#e8ff45",
"motion": "mid",
"grain": false
}/*EDITMODE-END*/;
function TweaksApp() {
const [t, setTweak] = useTweaks(TWEAK_DEFAULTS);
useEffect(() => { window.__siteAccent && window.__siteAccent(t.accent); }, [t.accent]);
useEffect(() => { window.__siteMotion && window.__siteMotion(t.motion); }, [t.motion]);
useEffect(() => { window.__siteGrain && window.__siteGrain(t.grain); }, [t.grain]);
return (
setTweak("accent", v)}
/>
setTweak("motion", v)}
/>
setTweak("grain", v)}
/>
);
}
const __troot = document.getElementById("tweaks-root");
if (__troot) ReactDOM.createRoot(__troot).render();