/* @component-map * App — Main container, role selection, tab navigation [app.jsx] * TeacherView — Teacher's dashboard with class setup and supply management [components/TeacherView.jsx] * ParentView — Parent's view to browse needs and claim items [components/ParentView.jsx] * SupplyList — Shared supply list component [components/SupplyList.jsx] * @end-component-map */ import { useState } from 'react'; import { useIdentity, useCollection } from '@deplixo/sdk'; import { TeacherView } from './components/TeacherView.jsx'; import { ParentView } from './components/ParentView.jsx'; function App() { const { user, loading: userLoading } = useIdentity(); const { items: roleItems, add: addRole, loading: roleLoading } = useCollection("roles"); const [role, setRole] = useState(null); const [forceShowClassSetup, setForceShowClassSetup] = useState(false); if (userLoading || roleLoading) { return
Loading classroom...
Welcome, {user?.name}! How would you like to participate?