/* Navigation chrome for the Parent App */
const JL_TABS = [
{ id:'home', label:'Home', icon:'house' },
{ id:'messages', label:'Messages', icon:'message-circle' },
{ id:'transport', label:'Transport', icon:'bus' },
{ id:'activities', label:'Activities', icon:'clipboard-list' },
{ id:'profile', label:'Profile', icon:'user' },
];
function BottomNav({ active, onNav }) {
return (
{JL_TABS.map(t => {
const on = active === t.id;
return (
);
})}
);
}
/* Top bar with personal greeting (Home) */
function GreetingBar({ name, onBell, onBack }) {
return (
);
}
/* Pushed-screen bar: back + centered title (+ optional bell) */
function PushBar({ title, onBack, bell = true }) {
return (
{title}
{bell
?
:
}
);
}
/* Large-title bar (Messages) */
function TitleBar({ title, action, onBack }) {
return (
);
}
const bellBtn = { position:'relative', width:42, height:42, borderRadius:'999px', border:'1px solid var(--gray-200)', background:'#fff', display:'flex', alignItems:'center', justifyContent:'center', cursor:'pointer' };
const iconBtn = { width:38, height:38, borderRadius:'999px', border:0, background:'transparent', display:'flex', alignItems:'center', justifyContent:'center', cursor:'pointer' };
const dot = { position:'absolute', top:9, right:10, width:8, height:8, borderRadius:'999px', background:'var(--danger-500)', border:'1.5px solid #fff' };
Object.assign(window, { BottomNav, GreetingBar, PushBar, TitleBar, JL_TABS });