import { Component, createSignal, Show } from 'solid-js'; import { A } from '@solidjs/router'; import { useAuth, useAuthActions } from '../../lib/auth'; export const AppLayout: Component = (props) => { const auth = useAuth(); const { signOut } = useAuthActions(); const [sidebarOpen, setSidebarOpen] = createSignal(true); return (

{getPageTitle()}

{props.children}
); }; function getPageTitle(): string { const path = window.location.pathname; const titles: Record = { '/dashboard': 'Dashboard', '/kpi': 'KPI Dashboard', '/projects': 'Projects', '/projects/new': 'New Project', '/profile': 'Profile', '/teams': 'Teams', }; return titles[path] || 'FrenoCorp'; }