mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
22 lines
483 B
TypeScript
22 lines
483 B
TypeScript
|
|
"use client";
|
||
|
|
|
||
|
|
import { usePathname } from "next/navigation";
|
||
|
|
import { Navbar, Footer } from "@katanemo/ui";
|
||
|
|
|
||
|
|
export function ConditionalLayout({ children }: { children: React.ReactNode }) {
|
||
|
|
const pathname = usePathname();
|
||
|
|
const isStudio = pathname?.startsWith("/studio");
|
||
|
|
|
||
|
|
if (isStudio) {
|
||
|
|
return <>{children}</>;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className="min-h-screen">
|
||
|
|
<Navbar />
|
||
|
|
<main className="pt-2 md:pt-10">{children}</main>
|
||
|
|
<Footer />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|