2026-06-02 02:42:07 +07:00
|
|
|
import { ReactNode } from "react";
|
|
|
|
|
import { Navbar } from "./navbar";
|
|
|
|
|
import { Footer } from "./footer";
|
|
|
|
|
|
|
|
|
|
type Props = { children: ReactNode };
|
|
|
|
|
|
|
|
|
|
export function MainLayout({ children }: Props) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="min-h-screen flex flex-col bg-[#ECF4E8]">
|
|
|
|
|
<Navbar />
|
2026-06-06 02:15:43 +07:00
|
|
|
<main className="mx-auto w-full max-w-6xl flex-1 px-4 sm:px-6 py-6 sm:py-8">
|
2026-06-02 02:42:07 +07:00
|
|
|
{children}
|
|
|
|
|
</main>
|
|
|
|
|
<Footer />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|