import { Async } from "react-async"; import { getInvoicingSummary, type InvoiceSummary } from "../../api/client"; import { Alert, Button, Grid, Typography } from "@mui/material"; import { PurchaseSummaryTable } from "./PurchaseSummaryTable"; import { SessionSummaryTable } from "./SessionSummaryTable"; import { useNavigate } from "react-router"; export const InvoicePage = () => { const invoiceSummaryPromise = getInvoicingSummary(); const navigate = useNavigate(); return ( Summary > {(invoiceSummary) => ( )} Something went wrong ); };