UnorderedList.js (718B)
1 import LiItem from "./LiItem.js"; 2 3 function UnorderedList({ arr }) { 4 return ( 5 <div className="list-container"> 6 <ul className="list"> 7 {arr.map((_) => { 8 const { 9 attributed, 10 author, 11 misattributed, 12 title, 13 uri, 14 unverified, 15 } = _; 16 return ( 17 <LiItem 18 key={`${author}/${uri}`} 19 attributed={attributed} 20 author={author} 21 misattributed={misattributed} 22 title={title} 23 uri={uri} 24 unverified={unverified} 25 /> 26 ); 27 })} 28 </ul> 29 </div> 30 ); 31 } 32 33 export default UnorderedList;