import { Footer } from '@/components/Footer'
import { Newsletter } from '@/components/Newsletter'
import Banner from '@/components/Banner'
import { Header } from '@/components/Header'

export function Layout({ children, showFooter = true }) {
  return (
    <>
      <Header />
      <Banner />
      <main className="flex-auto">{children}</main>
      <Newsletter />
      {showFooter && <Footer />}
    </>
  )
}
