import { Alert, Grid, Paper, Typography } from "@mui/material"; import { useMemo } from "react"; import { Async } from "react-async"; import { getAllSessions, getAvailableTokenCount, type Session, type Tokens, } from "../../api/client"; import { SessionPicker } from "./SessionPicker"; import { TokensSummary } from "./TokensSummary"; export const SignUpPage = () => { const sessionsPromise = useMemo(getAllSessions, []); const tokensPromise = getAvailableTokenCount(); return ( Pick a date Loading > {(sessions) => sessions.length === 0 ? ( No sessions are available ) : ( ) } Something went wrong > {(tokens) => } Something went wrong ); };