20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
// apps/dm/app/(landing)/reuse/layout.tsx
|
|
"use client";
|
|
|
|
import "./reuse.module.css";
|
|
|
|
import TopNav from "./_components/TopNav";
|
|
import { usePathname } from "next/navigation";
|
|
|
|
export default function ReuseLayout({ children }: { children: React.ReactNode }) {
|
|
const pathname = usePathname();
|
|
const hasLnb = pathname !== "/reuse"; // 예: 메인만 제외
|
|
|
|
return (
|
|
<div className="pt-[83px]">
|
|
{hasLnb && <TopNav />}
|
|
<main className={hasLnb ? "ml-[260px]" : ""}>{children}</main>
|
|
</div>
|
|
);
|
|
}
|