// app/page.tsx
import BeachPromo from './components/BeachPromo';
import Footer from './components/Footer';
import Header from './components/Header';
import HomeClientContent from './components/HomeClientContent';
import { getConfig } from './lib/config';

export default async function Home() {
  const config = await getConfig();

  return (
    <main>
      <Header />
      {config.showBeachPromo && (
        <BeachPromo />
      )}
      <HomeClientContent />
      <Footer />
    </main>
  );
}