/* 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 }) => (
);
const Line = ({ icon, tint, ic, title, sub, on, last }) => (
);
return (
{/* tabs */}
{tabs.map(([id,lab])=>(
))}
{tab==='school' && (
)}
{tab==='notifications' && (
)}
{tab==='roles' &&
}
{tab==='billing' && (
)}
);
}
Object.assign(window, { SettingsScreen });