import React, { PureComponent } from 'react'; import { withModalMounter } from '/imports/ui/components/common/modal/service'; import { defineMessages, injectIntl } from 'react-intl'; import Button from '/imports/ui/components/common/button/component'; import ConnectionStatusModalContainer from '/imports/ui/components/connection-status/modal/container'; import ConnectionStatusService from '/imports/ui/components/connection-status/service'; import Icon from '/imports/ui/components/connection-status/icon/component'; import Styled from './styles'; const intlMessages = defineMessages({ label: { id: 'app.connection-status.label', description: 'Connection status button label', }, description: { id: 'app.connection-status.description', description: 'Connection status button description', }, }); class ConnectionStatusButton extends PureComponent { renderIcon(level = 'normal') { return( ); } render() { const { intl, connected, } = this.props; if (!connected) { return (