// Tweaks panel — lets user toggle density, palette, view const { useState: useStateTweaks, useEffect: useEffectTweaks } = React; const TweaksPanel = ({ tweaks, setTweaks, onClose }) => { return (
Tweaks
Speel met het ontwerp
setTweaks({...tweaks, density: v})} options={[['comfy','Ruim'], ['compact','Compact']]} /> setTweaks({...tweaks, palette: v})} options={[['warm','Warm'], ['neutraal','Neutraal'], ['koel','Koel']]} />
{[ ['tomaat', 'oklch(0.60 0.18 30)'], ['mosterd','oklch(0.68 0.14 70)'], ['kruid', 'oklch(0.55 0.14 150)'], ['aubergine','oklch(0.50 0.14 285)'], ].map(([id, col]) => (
setTweaks({...tweaks, showSauzenOnCard: v === 'aan'})} options={[['aan','Aan'], ['uit','Uit']]} />
); }; const TweakRow = ({ label, children }) => (
{label.toUpperCase()}
{children}
); const Seg = ({ value, setValue, options }) => (
{options.map(([id, label]) => ( ))}
); window.TweaksPanel = TweaksPanel;