// faq-tweaks.jsx — Three expressive controls that reshape the feel of the FAQ // Mood (palette) · Density (rhythm) · Voice (Q/A treatment) const { useEffect } = React; const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "mood": "editorial", "density": "conversacion", "voice": "pregunta" }/*EDITMODE-END*/; function FaqTweaks() { const [t, setTweak] = useTweaks(TWEAK_DEFAULTS); useEffect(() => { document.body.dataset.faqMood = t.mood; document.body.dataset.faqDensity = t.density; document.body.dataset.faqVoice = t.voice; }, [t]); return ( setTweak('mood', v)} options={[ { value: 'editorial', label: 'Editorial' }, { value: 'crepusculo', label: 'Crepúsculo' }, { value: 'manuscrito', label: 'Manuscrito' }, ]} /> setTweak('density', v)} options={[ { value: 'conversacion', label: 'Conversación' }, { value: 'indice', label: 'Índice' }, { value: 'expediente', label: 'Expediente' }, ]} /> setTweak('voice', v)} options={[ { value: 'pregunta', label: 'Pregunta sola' }, { value: 'dialogo', label: 'Diálogo P/R' }, ]} /> ); } const _faqRoot = document.createElement('div'); _faqRoot.id = 'faq-tweaks-root'; document.body.appendChild(_faqRoot); ReactDOM.createRoot(_faqRoot).render();