import { connect } from 'react-redux' ; import { AppState } from '../reducers/StateTypes' ; import Renderer , { StateProps } from './Renderer' ; const mapStateToProps = ( state ) : StateProps => { return { cards : state . cards . filtered , filters : state . filters , translations : state . cards . translations , } ; } ; const RendererContainer = connect ( mapStateToProps ) ( Renderer ) ; export default RendererContainer ;