import { useState } from 'react'; import { Outlet, useLocation } from 'react-router-dom'; import { Header } from './Header'; import { Sidebar } from './Sidebar'; export function Layout() { const [sidebarOpen, setSidebarOpen] = useState(false); const location = useLocation(); // Determine title from current route const getTitle = () => { const path = location.pathname.replace('/', ''); if (!path || path === 'dashboard') {return 'Dashboard';} return path.charAt(0).toUpperCase() + path.slice(1); }; return (