
import { connect } from 'react-redux'

import Canvas from '../components/Canvas'

function mapStateToProps(state) {
    return {
        image: state.inputImage
    }
}

function mapDispatchToProps() {
    return {}
}

export default connect(mapStateToProps, mapDispatchToProps)(Canvas)


import { connect } from 'react-redux'

import Canvas from '../components/Canvas'

function mapStateToProps(state) {
    return {
        image: state.inputImage.image
    }
}

function mapDispatchToProps() {
    return {}
}

export default connect(mapStateToProps, mapDispatchToProps)(Canvas)

Update for size in props
Update for size in props