2import { usePathname } from "next/navigation";
3import Navigation from "@/components/Navigation";
4import Breadcrumbs from "@/components/Breadcrumbs";
5import { StoreProvider } from "@/contexts/StoreContext";
6import { ThemeProvider } from "@/contexts/ThemeContext";
7import { IconProvider } from "@/contexts/IconContext";
8import ThemeIndicator from "@/components/ThemeIndicator";
10export default function ClientLayout({
13 children: React.ReactNode;
15 const pathname = usePathname();
17 // Pages that should be full-screen without navigation
18 const fullScreenPages = ["/", "/login", "/pages/landing", "/pages/login", "/pages/sales/display"];
19 const isFullScreen = pathname ? (fullScreenPages.includes(pathname) || pathname.startsWith("/pages/login") || pathname.startsWith("/pages/landing") || pathname.startsWith("/pages/sales/display")) : false;
21 // Pages that don't need authentication/session (login pages)
22 const isLoginPage = pathname === "/login" || pathname === "/pages/login" || pathname?.startsWith("/pages/login");
25 // Login pages don't need StoreProvider (no session required)
37 // Other full-screen pages (like customer display) need StoreProvider
54 <div className="flex h-screen" style={{ background: 'var(--bg)' }}>
56 <div className="flex-1 overflow-y-auto flex flex-col">
58 <div className="flex-1">