text: import React, { Component } from 'react';
  import PropTypes from 'prop-types';
  import { observer } from 'mobx-react';
  import { defineMessages, intlShape } from 'react-intl';
  
  import Button from '../../ui/Button';
  
  const messages = defineMessages({
    headline: {
      id: 'service.disabledHandler.headline',
      defaultMessage: '!!!{name} is disabled',
    },
    action: {
      id: 'service.disabledHandler.action',
      defaultMessage: '!!!Enable {name}',
    },
  });
  
  export default @observer class ServiceDisabled extends Component {
    static propTypes = {
      name: PropTypes.string.isRequired,
      enable: PropTypes.func.isRequired,
    };
  
    static contextTypes = {
      intl: intlShape,
    };
  
    countdownInterval = null;
  
    countdownIntervalTimeout = null;
  
    render() {
      const { name, enable } = this.props;
      const { intl } = this.context;
  
      return (
        <div className="services__info-layer">
          <h1>{intl.formatMessage(messages.headline, { name })}</h1>
          <Button
            label={intl.formatMessage(messages.action, { name })}
            buttonType="inverted"
            onClick={() => enable()}
          />
        </div>
      );
    }
  }
  