import * as React from "react"; import { List, ListItem, ListItemAvatar, ListItemText, Avatar, Typography, Box, IconButton, } from "@mui/material"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import { LatestItemsViewProps } from "./LatestItems.models"; export default function LatestItemsView({ items, header, accentColor, canExpand, onExpand, isFetching, }: LatestItemsViewProps) { return ( {header} {items.map((item, index) => ( {item.title} } secondary={ {item.subtitle} } /> {item.amount} {item.timeAgo} ))} {canExpand && ( )} ); }