"use client"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; import { TopNav } from "@/components/top-nav"; import { useBranding } from "@/lib/branding"; export function AppShell({ children }: { children: ReactNode }) { const pathname = usePathname(); const branding = useBranding({ applyDocument: true }); const normalizedPath = pathname.replace(/\/+$/, "") || "/"; const isLoginPage = normalizedPath === "/login"; const isImagePage = normalizedPath === "/image"; if (isLoginPage) { return
{children}
; } if (isImagePage) { return (
{children}
); } return (
{children}
); }