const { connect } = require('preact-redux');

const actions = require('../actions');
const Info = require('./info.component');

const addState = connect(
    function receiveState(state) {
        const {
            ws,
            combiner,
            info,
            itemInfo,
            instance,
            account,
        } = state;

        return {
            ws,
            combiner,
            info,
            itemInfo,
            instance,
            account,
        };
    },
);

module.exports = addState(Info);
