import { containerConnect } from 'Framework/ComponentContainer';
import LicenseNotice from 'App/Shared/Components/LicenseNotice';

const mapStateToProps = ({ configurationMode }) => {
    const { selectedMode, licenses } = configurationMode;
    return {
        Component: LicenseNotice,
        displayMissingLicenseNotice: !licenses.includes(selectedMode),
    };
};

export default containerConnect(mapStateToProps, null);
