import { Navbar } from "@/components/shared/navbar";
import { ProfileNudgeBanner } from "@/components/shared/profile-nudge-banner";
import { Footer } from "@/components/shared/footer";

/**
 * Layout user-facing (semua halaman publik + dashboard organizer/peserta).
 * Berisi navbar global, profile-nudge banner, dan footer.
 *
 * Tidak berlaku untuk halaman admin — admin punya layout sendiri di
 * app/admin/layout.tsx dengan sidebar khusus.
 */
export default function PublicLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <>
      <Navbar />
      <ProfileNudgeBanner />
      <main className="flex-1">{children}</main>
      <Footer />
    </>
  );
}
