function App() { const [editMode, setEditMode] = React.useState(false); React.useEffect(() => { const handler = (e) => { if (e.data?.type === '__activate_edit_mode') setEditMode(true); if (e.data?.type === '__deactivate_edit_mode') setEditMode(false); }; window.addEventListener('message', handler); window.parent.postMessage({ type: '__edit_mode_available' }, '*'); return () => window.removeEventListener('message', handler); }, []); React.useEffect(() => { const v = window.GS_TWEAKS?.variant || 'aurora'; document.body.setAttribute('data-variant', v); }, []); return ( <> Generative Solutions