import * as React from 'react' ; import State from '../../state/State' ; import { Dispatch , Action } from 'redux' ; import { connect } from 'react-redux' ; import TableBorder from './TableBorder' ; interface TableImageProps { text : string ; } const mapStateToProps = ( state ) => ( { text : state . run . table . text } ) ; const mapDispatchToProps = ( dispatch ) => ( { } ) ; export function TableImage ( props ) { return ( < TableBorder > < img className = "inGameImg" src = { props . text } / > < /TableBorder>); } export default connect ( mapStateToProps , mapDispatchToProps ) ( TableImage ) ;