/* global React, ReactDOM, InfluencerHero, GrindSection, FeatureRackSection, OnTheGoSection, FinalSection, MINPage */
// Influencer solutions page — assembly + layout tweak (desktop / mobile).
const IN_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "layout": (window.SZ_LAYOUT || "desktop")
}/*EDITMODE-END*/;

const IN_LOCALS = { '/influencer': 'Hero — Influencer', '15 Pricing': '05 Pricing', '16 FAQ': '06 FAQ' };

const InfluencerPage = () => {
  const [t, setTweak] = window.useTweaks(IN_TWEAK_DEFAULTS);
  const mobile = t.layout === 'mobile';
  return (
    <React.Fragment>
      {mobile ? <MINPage /> : (
        <div style={{ fontFamily: 'var(--font-sans)' }}>
          <div data-screen-label="Hero — Influencer"><InfluencerHero /></div>
          <div data-screen-label="01 The grind"><GrindSection /></div>
          <div data-screen-label="02 The toolkit"><FeatureRackSection /></div>
          <div data-screen-label="03 On the go"><OnTheGoSection /></div>
          <div data-screen-label="04 Brand deals"><window.BrandDealsSection bg="#fff" audience="influencer" /></div>
          <div data-screen-label="05 Pricing"><window.PricingSection /></div>
          <div data-screen-label="06 FAQ"><window.FAQSection /></div>
          <div data-screen-label="CTA + Footer"><FinalSection /></div>
          <window.SozeeNav revealAfter="always" logoHref="/" siteHref="/" localLabels={IN_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(<InfluencerPage />);
