/* tweaks-panel.jsx — runtime for the optional "Tweaks" customization overlay.

   The full interactive panel was a design-time editing tool and was never
   shipped to production, which left three pages (post-workout, workout-summary,
   monthly-summary) referencing a file that 404'd to the SPA shell and threw a
   Babel SyntaxError on load.

   This provides inert primitives so those pages don't throw. `useTweaks`
   returns the page's default tweak values (so the page's own effect still
   applies the correct accent / author-mode / density), and the panel chrome
   renders nothing — keeping the production UI clean. If we ever want the
   interactive panel as a real user feature, replace the Null components below
   with real UI. */
(function () {
  var React = window.React;
  if (!React) return;

  window.useTweaks = function (defaults) {
    var pair = React.useState(defaults || {});
    var t = pair[0], setT = pair[1];
    var setTweak = function (key, value) {
      setT(function (prev) {
        var next = Object.assign({}, prev);
        next[key] = value;
        return next;
      });
    };
    return [t, setTweak];
  };

  var Null = function () { return null; };
  window.TweaksPanel = Null;
  window.TweakSection = Null;
  window.TweakRadio = Null;
  window.TweakColor = Null;
  window.TweakToggle = Null;
})();
