File indexing completed on 2025-01-26 05:27:59
0001 import React, { Component } from 'react'; 0002 import Product from './Product'; 0003 class MySpamContainer extends React.Component { 0004 constructor(props){ 0005 super(props); 0006 } 0007 render(){ 0008 let container; 0009 if (this.props.spams){ 0010 const products = this.props.spams.map((product,index) => ( 0011 <li key={index}> 0012 <Product product={product} baseUrlStore={this.props.baseUrlStore}/> 0013 </li> 0014 )); 0015 container = <ul>{products}</ul> 0016 } 0017 return ( 0018 <div className="panelContainer"> 0019 <div className="title">Spam</div> 0020 {container} 0021 </div> 0022 ) 0023 } 0024 } 0025 0026 export default MySpamContainer;