/* global React, ReactDOM, CreateVideoHero, WaysInSection, ReelSection, VoiceLiveSection, VideoFormatsSection, VideoPipelineSection, FinalSection, MCVPage */
// Create Video feature page — assembly + layout tweak (desktop / mobile).
const CV_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "layout": (window.SZ_LAYOUT || "desktop")
}/*EDITMODE-END*/;

const CV_LOCALS = { '/create-video': 'Hero — Create Video', '08 Reel cloning': '02 Reel cloning', '09 Voice and Live': '03 Voice and Live', '15 Pricing': '06 Pricing', '16 FAQ': '07 FAQ' };

const CreateVideoPage = () => {
  const [t, setTweak] = window.useTweaks(CV_TWEAK_DEFAULTS);
  const mobile = t.layout === 'mobile';
  return (
    <React.Fragment>
      {mobile ? <MCVPage /> : (
        <div style={{ fontFamily: 'var(--font-sans)' }}>
          <div data-screen-label="Hero — Create Video"><CreateVideoHero /></div>
          <div data-screen-label="01 Ways in"><WaysInSection /></div>
          <div data-screen-label="02 Reel cloning"><ReelSection /></div>
          <div data-screen-label="03 Voice and Live"><VoiceLiveSection /></div>
          <div data-screen-label="04 Formats"><VideoFormatsSection /></div>
          <div data-screen-label="05 What comes next"><VideoPipelineSection /></div>
          <div data-screen-label="06 Pricing"><window.PricingSection /></div>
          <div data-screen-label="07 FAQ"><window.FAQSection /></div>
          <div data-screen-label="CTA + Footer"><FinalSection /></div>
          <window.SozeeNav revealAfter="always" logoHref="/" siteHref="/" localLabels={CV_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(<CreateVideoPage />);
