13 lines
328 B
TypeScript
13 lines
328 B
TypeScript
"use client"
|
|
|
|
import { usePathname } from "next/navigation"
|
|
import { AppShell } from "./app-shell"
|
|
|
|
export function ConditionalShell({ children }: { children: React.ReactNode }) {
|
|
const pathname = usePathname()
|
|
if (pathname?.startsWith("/screen")) {
|
|
return <>{children}</>
|
|
}
|
|
return <AppShell>{children}</AppShell>
|
|
}
|