/* Admin → Settings */ function SettingsScreen() { const [tab, setTab] = React.useState('school'); const tabs = [['school','School Profile'],['notifications','Notifications'],['roles','Roles & Access'],['billing','Billing']]; const Toggle = ({ on }) => ( ); const Field = ({ label, value }) => (
{label}
); const Line = ({ icon, tint, ic, title, sub, on, last }) => (
{title}
{sub}
); return (
{/* tabs */}
{tabs.map(([id,lab])=>( ))}
{tab==='school' && (
logo
)} {tab==='notifications' && ( )} {tab==='roles' && } {tab==='billing' && ( )}
); } Object.assign(window, { SettingsScreen });