function Sidebar({ active = 'instock', onSelect, planId, branchLimit, branchUser }) { const Item = ({ id, label, icon = '📋', activeId, onClick }) => ( { e.preventDefault(); onClick?.(id); try { location.hash = '#' + id; } catch {} }} > {icon} {label} ); const SectionTitle = ({ title, icon }) => (
{icon && {icon}} {title}
); // Determine if this is a branch user const isBranch = !!branchUser; return ( ); } // Register globally for the in-browser JSX loader window.Sidebar = Sidebar;