import containerConnect from 'Framework/ComponentContainer';
import { setVisible } from 'App/Reducers/UI/Actions';

const mapStateToProps = ({ ui, configurator }) => {
    return {
        show: !!ui.visibilityMap.stockInformation,
        option: configurator.stockInformationOption,
    };
};

const mapDispatchToProps = dispatch => ({
    onClose: () => dispatch(setVisible('stockInformation', false)),
});

export default containerConnect(mapStateToProps, mapDispatchToProps);
