import * as React from 'react' ; import styles from './styles.scss' ; import Prediction , { IPrediction , } from './Prediction' ; interface IProps { predictions : IPrediction [ ] ; } const Predictions = ( { predictions , } ) => { return ( < ul className = { styles . container } > { predictions . map ( ( prediction , idx ) => ( < Prediction prediction = { prediction } key = { idx } / > ) ) } < /ul>); } ; export default Predictions ;