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

const mapStateToProps = ({ ui, configurator }) => ({
    show: !!ui.visibilityMap.validationResult,
    validationResult: configurator.validation,
    optionclassifications: configurator.configuration.optionclassifications,
});

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

export default containerConnect(mapStateToProps, mapDispatchToProps);
