11 lines
315 B
TypeScript
11 lines
315 B
TypeScript
"use client";
|
|
|
|
import { usePathname } from "next/navigation";
|
|
import type { ReactNode } from "react";
|
|
|
|
export default function SiteChrome({ children }: { children: ReactNode }) {
|
|
const pathname = usePathname();
|
|
if (pathname === "/demo" || pathname.startsWith("/demo/")) return null;
|
|
return <>{children}</>;
|
|
}
|