/* global gettext */ import React from 'react'; class Static2UCallouts extends React.Component { constructor(props) { super(props); this.state = { show2uLobs: false, }; } componentDidMount() { const optimizely = window["optimizely"] || []; optimizely.push({ "type": "user", "attributes": { "isEnterpriseUser": this.props.isEnterpriseUser.toString(), } }); optimizely.push({ type: "page", pageName: "van_1097_merchandise_2u_lobs_on_dashboard" }); const experimentId = '22164741776'; this.timer = setTimeout(() => { const selectedVariant = optimizely.get("state").getVariationMap()[experimentId]; if (selectedVariant?.name === 'dashboard_with_2u_lobs'){ this.setState({ show2uLobs: true, }) } }, 500 ); } componentWillUnmount() { clearTimeout(this.timer); } render() { return ( this.state.show2uLobs && (
{gettext('We\'ve added 500+ learning opportunities to create one of the world\'s most ' + 'comprehensive free-to-degree online learning platforms.')}