Files
aycanurmimarl-k/components/LayoutContent.tsx
2026-04-13 00:49:59 +03:00

21 lines
444 B
TypeScript

'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 />}
</>
);
}