import { Button, Dialog, DialogActions, DialogContent, DialogTitle, List, ListItem, ListItemAvatar, ListItemButton, ListItemText, } from "@mui/material"; import React from "react"; import { ISOCatalogEntry, IsoFilesApi } from "../api/IsoFilesApi"; import { AsyncWidget } from "../widgets/AsyncWidget"; export function IsoCatalogDialog(p: { open: boolean; onClose: () => void; }): React.ReactElement { const [catalog, setCatalog] = React.useState(); const load = async () => { setCatalog(await IsoFilesApi.Catalog()); }; return ( ISO catalog } /> ); } export function IsoCatalogDialogInner(p: { catalog: ISOCatalogEntry[]; }): React.ReactElement { return ( {p.catalog.map((entry) => ( ))} ); }