Files
wagtailcms-frontend/components/layout/SiteChrome.tsx
T

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