"use client"; import React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Plus, Users, FolderKanban } from "lucide-react"; export default function MissionsLayout({ children, }: { children: React.ReactNode; }) { const pathname = usePathname(); // Check if we're on the equipe page or its subpages const isEquipePage = pathname === "/missions/equipe" || pathname.startsWith("/missions/equipe/"); // Check if we're on the missions list or a mission detail page const isMissionsPage = pathname === "/missions" || (pathname.startsWith("/missions/") && !isEquipePage && pathname !== "/missions/new"); const isNewMissionPage = pathname === "/missions/new"; return (
{/* Sidebar with light pink background */}
{/* Title section */}

CAP

Centre d'Administration et de Pilotage

{/* Navigation links */}
{/* Main content - white background */}
{children}
); }