// ===== Tweaks panel ===== const { useState: useTS, useEffect: useTE } = React; function TweaksPanel({ tweaks, setTweaks, onClose }) { const setKey = (k, v) => { const next = { ...tweaks, [k]: v }; setTweaks(next); try { window.parent.postMessage({ type: '__edit_mode_set_keys', edits: { [k]: v } }, '*'); } catch (e) {} }; return (

Tweaks ↺

setKey('cursor', !tweaks.cursor)} role="switch" aria-checked={tweaks.cursor} />
setKey('stickers', !tweaks.stickers)} />
{[0, 1, 2].map(i => ( ))}

Play with the toggles — saved on reload.

); } window.TweaksPanel = TweaksPanel;