/* global React, ReactDOM, MicroCreatorHero, WhatToPostSection, GearGapSection, ConsistencySection, DayOneSection, FinalSection, MMCPage */
// Micro-Creator solutions page — assembly + layout tweak (desktop / mobile).
const MC_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "layout": (window.SZ_LAYOUT || "desktop")
} /*EDITMODE-END*/;

const MC_LOCALS = { '/micro-creator': 'Hero — Micro-Creator', '14 Explore': '01 What to post', '15 Pricing': '07 Pricing', '16 FAQ': '08 FAQ' };

const MicroCreatorPage = () => {
  const [t, setTweak] = window.useTweaks(MC_TWEAK_DEFAULTS);
  const mobile = t.layout === 'mobile';
  return (
    <React.Fragment>
      {mobile ? <MMCPage /> :
      <div style={{ fontFamily: 'var(--font-sans)' }}>
          <div data-screen-label="Hero — Micro-Creator"><MicroCreatorHero /></div>
          <div data-screen-label="01 What to post"><WhatToPostSection /></div>
          <div data-screen-label="02 The gear gap"><GearGapSection /></div>
          <div data-screen-label="03 Consistency"><ConsistencySection /></div>
          <div data-screen-label="04 The toolkit"><window.FeatureRackSection /></div>
          <div data-screen-label="05 On the go"><window.OnTheGoSection /></div>
          <div data-screen-label="06 Brand deals"><window.BrandDealsSection bg="#fff" audience="micro" /></div>
          <div data-screen-label="07 Pricing"><window.PricingSection /></div>
          <div data-screen-label="08 FAQ"><window.FAQSection /></div>
          <div data-screen-label="CTA + Footer"><FinalSection /></div>
          <window.SozeeNav revealAfter="always" logoHref="/" siteHref="/" localLabels={MC_LOCALS} />
        </div>
      }
      <window.TweaksPanel>
        <window.TweakSection label="Layout" />
        <window.TweakRadio label="Viewport" value={t.layout}
        options={[{ value: 'desktop', label: 'Desktop' }, { value: 'mobile', label: 'Mobile' }]}
        onChange={(v) => setTweak('layout', v)} />
      </window.TweaksPanel>
    </React.Fragment>);

};
ReactDOM.createRoot(document.getElementById('root')).render(<MicroCreatorPage />);