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, accentColor, canExpand, onExpand, }: LatestItemsViewProps) { return ( Recent Transactions {items.map((item, index) => ( {item.title} } secondary={ {item.subtitle} } /> {item.amount} {item.timeAgo} ))} {canExpand && ( )} ); }