import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";

// SiteFooter reads admin-configurable business settings (address, phone,
// hours, social links) from the database on every render. Forcing the whole
// layout dynamic (rather than just individual pages) guarantees the footer
// never gets frozen into a static prerender that ignores later admin changes
// -- this applies to every current and future page nested under (site).
export const dynamic = "force-dynamic";

export default function SiteLayout({ children }: { children: React.ReactNode }) {
  return (
    <div className="flex min-h-screen flex-col">
      <SiteHeader />
      <main className="flex-1">{children}</main>
      <SiteFooter />
    </div>
  );
}
