import { Card } from '@automattic/components';
import { localize } from 'i18n-calypso';
import { Component } from 'react';
import { connect } from 'react-redux';
import ExternalLinkWithTracking from 'calypso/components/external-link-with-tracking';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import PrimaryHeader from './primary-header';
class NoAvailableTimes extends Component {
componentDidMount() {
this.props.recordTracksEvent( 'calypso_concierge_no_available_times' );
}
render() {
const { translate, isUserBlocked } = this.props;
return (
{ translate( 'Sorry, all upcoming sessions are full.' ) }
{ isUserBlocked &&
translate(
'We add new sessions daily, so please check back soon for more options. In the meantime, consider attending one of our expert webinars on a wide variety of topics designed to help you build and grow your site. {{externalLink1}}View webinars{{/externalLink1}}.',
{
components: {
externalLink1: (
),
},
}
) }
{ ! isUserBlocked &&
translate(
'We add new sessions daily, so please check back soon for more options. In the meantime, consider attending one of our expert webinars on a wide variety of topics designed to help you build and grow your site. {{externalLink1}}View webinars{{/externalLink1}} or {{externalLink2}}contact us in Live Chat{{/externalLink2}}.',
{
components: {
externalLink1: (
),
externalLink2: (
),
},
}
) }
);
}
}
export default connect( null, { recordTracksEvent } )( localize( NoAvailableTimes ) );