window.useTweaks = function(defaults) {
  const [state, setState] = React.useState(defaults);
  return [state, function(key, val) { setState(function(prev) { var next = Object.assign({}, prev); next[key] = val; return next; }); }];
};
window.TweaksPanel = function() { return null; };
window.TweakSection = function(props) { return props.children; };
window.TweakSlider = function() { return null; };
window.TweakToggle = function() { return null; };
window.TweakSelect = function() { return null; };
