import React from 'react'

import Page from '../../components/page'
import Header from './header'
import PreviousEpisodeSection from './sections/previous-episodes'
import EpisodesSection from './sections/episodes'
import PanelistsSection from './sections/panelists'
import SponsorsSection from '../../components/sponsors'
import LinksSection from './sections/links'

import SocialIconGroupSection from './sections/social-icon-group'
import FeatureShowScript from './scripts/feature-show'

export default Home

function Home(
  {
    futureEpisodes = [],
    pastEpisodes = [],
    sponsors,
    panelists,
  }
) {
  return (
    <Page>

      <Header />
      <EpisodesSection episodes={futureEpisodes} />
      <PanelistsSection panelists={panelists} />

      <div className="container">



        {futureEpisodes.length ? <hr /> : ''}

        <SponsorsSection {...sponsors} />

        <hr />

        <PreviousEpisodeSection episodes={pastEpisodes} />

        {pastEpisodes.length ? <hr /> : ''}

        <hr />


        <hr />

        <SocialIconGroupSection />

        <hr />

        <LinksSection />

        <FeatureShowScript />
      </div>
    </Page>
  )
}

import React from 'react'

import Page from '../../components/page'
import Header from './header'
import PreviousEpisodeSection from './sections/previous-episodes'
import EpisodesSection from './sections/episodes'
import PanelistsSection from './sections/panelists'
import SponsorsSection from '../../components/sponsors'
import LinksSection from './sections/links'

import SocialIconGroupSection from './sections/social-icon-group'
import FeatureShowScript from './scripts/feature-show'

export default Home

function Home(
  {
    futureEpisodes = [],
    pastEpisodes = [],
    sponsors,
    panelists,
  }
) {
  return (
    <Page>

      <Header />
      <EpisodesSection episodes={futureEpisodes} />
      <PanelistsSection panelists={panelists} />

      <div className="container">

        <SponsorsSection {...sponsors} />

        <PreviousEpisodeSection episodes={pastEpisodes} />

        {pastEpisodes.length ? <hr /> : ''}

        <SocialIconGroupSection />

        <LinksSection />

        <FeatureShowScript />
      </div>
    </Page>
  )
}

Remove "<hr>" elements from homepage
Remove "<hr>" elements from homepage
