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

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