/* global React, ReactDOM, HeroStory */

const HERO_STORY_DEFAULTS = {
  speed: 1,
  autoplay: true,
};

const heroMount = document.getElementById('hero-story-mount');
if (heroMount) {
  ReactDOM.createRoot(heroMount).render(
    React.createElement(HeroStory, HERO_STORY_DEFAULTS)
  );
}

const caseMount = document.getElementById('spec-ring-mount');
if (caseMount && window.SpecRingCase) {
  ReactDOM.createRoot(caseMount).render(
    React.createElement(window.SpecRingCase)
  );
}
