/* Activities — assignments + behavior + AI helper */ function ActivitiesScreen({ onNav, onBack }) { const [tab, setTab] = React.useState('todo'); const todo = [ { subj:'Math', tint:'var(--blue-100)', ic:'var(--blue-500)', icon:'calculator', title:'Fractions Worksheet', due:'Due Today · 11:59 PM', pr:'High', prBg:'var(--danger-100)', prFg:'var(--danger-600)' }, { subj:'Science', tint:'var(--gold-100)', ic:'var(--gold-600)', icon:'flask-conical', title:'Study for Quiz', due:'Due Tomorrow · 9:00 AM', pr:'Medium', prBg:'var(--warning-100)', prFg:'var(--warning-600)' }, { subj:'ELA', tint:'var(--success-100)', ic:'var(--success-500)', icon:'book-open', title:'Reading Response', due:'Due Apr 28 · 11:59 PM', pr:'Low', prBg:'var(--success-100)', prFg:'var(--success-600)' }, ]; const done = [ { subj:'History', tint:'var(--gray-200)', ic:'var(--gray-600)', icon:'scroll', title:'Civil War Essay', due:'Submitted Apr 22' }, { subj:'Art', tint:'var(--gray-200)', ic:'var(--gray-600)', icon:'palette', title:'Color Wheel', due:'Submitted Apr 20' }, ]; return (
{/* segmented */}
{[['todo','To Do'],['done','Completed']].map(([id,lab])=>( ))}
{(tab==='todo'?todo:done).map((a,i)=>(
{a.subj}
{a.title}
{a.due}
{a.pr ? {a.pr} : }
))} {/* behavior (To Do tab only) */} {tab==='todo' && ( Behavior
Great participation today
Rating · 4 / 5
)} {/* AI helper card */}
AI Homework Helper
Get step-by-step help and understand any topic.
); } Object.assign(window, { ActivitiesScreen });