importtype{ ReactElement }from"react";import{ List, ListItem }from"@react-md/list";import{ StarSVGIcon }from"@react-md/material-icons";import Container from"./Container";const inbox =[{
from:"Ali Connors",
subject:"Bunch this weekend?",
message:"I'll be in your neighborhood sometime this week. Would you like to try brunch this weekend?",},{
from:"Ali Connors",
subject:"Summer BBQ",
message:"Wish I could come, but I'm out of town this weekend.",},{
from:"Scott Stirling",
subject:"See your video? You're a legend!",
message:"I still can't believe it happened... I'm not sure if my face will ever recover.",},];exportdefaultfunctionDemo(): ReactElement {return(<Container><List>{inbox.map(({ subject, message }, i)=>(<ListItemid={`three-line-item-${i}`}key={i}leftAddon={<imgsrc={`https://picsum.photos/40?image=100${i}`}alt=""/>}leftAddonType="media"rightAddon={<StarSVGIcon/>}rightAddonPosition="top"secondaryText={message}threeLines>{subject}</ListItem>))}</List></Container>);}