/* App shell: sidebar + topbar. Renders children content. */ (function () { const { useState } = React; const Icon = window.Icon, Logo = window.Logo, Avatar = window.Avatar; const D = window.YEIDA; const NAV = [ { k: 'dashboard', label: 'Dashboard', icon: 'dashboard' }, { k: 'plot', label: 'My Plot', icon: 'plot' }, { k: 'myjourney', label: 'My Journey', icon: 'flag' }, { k: 'sampleplans', label: 'Sample Plans', icon: 'grid' }, { k: 'construction', label: 'Construction', icon: 'construction' }, { k: 'payments', label: 'Payments', icon: 'payments', badge: '1' }, { k: 'documents', label: 'Documents', icon: 'documents' }, { k: 'notices', label: 'Notices', icon: 'notices', badge: '2' }, { k: 'sectormaps', label: 'Sector Maps', icon: 'map' }, { k: 'transfer', label: 'Transfer Plot', icon: 'transfer' }, { k: 'assistant', label: 'AI Assistant', icon: 'assistant' }, ]; const NAV2 = [ { k: 'support', label: 'Support', icon: 'support' }, { k: 'profile', label: 'Profile', icon: 'profile' }, ]; function Shell({ route, go, children, dark, setDark }) { const [q, setQ] = useState(''); const titleMap = { dashboard: 'My Plot Dashboard', plot: 'My Plot', construction: 'Construction', payments: 'Payments', documents: 'Document Center', notices: 'Notices & Announcements', sectormaps: 'Sector Maps', transfer: 'Transfer Plot', assistant: 'AI Assistant', support: 'Support Center', profile: 'Profile', sampleplans: 'Sample Plans & Virtual Tours', journey: 'Get Started', myjourney: 'My Construction Journey', }; return (