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