This commit is contained in:
2026-04-13 00:49:59 +03:00
parent a282bdbab0
commit e71f19605a
30 changed files with 1055 additions and 66 deletions

View File

@@ -0,0 +1,20 @@
'use client'
import { usePathname } from "next/navigation";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
export default function LayoutContent({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
const isHome = pathname === "/";
return (
<>
<Navbar />
<div className="flex-1">
{children}
</div>
{!isHome && <Footer />}
</>
);
}