import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import PropTypes from 'prop-types'; import { defineMessages, intlShape } from 'react-intl'; import injectSheet from 'react-jss'; import { oneOrManyChildElements } from '../../../prop-types'; import styles from './styles'; const messages = defineMessages({ action: { id: 'premiumFeature.button.upgradeAccount', defaultMessage: '!!!Upgrade account', }, }); export default @inject('actions') @injectSheet(styles) @observer class PremiumFeatureContainer extends Component { static propTypes = { classes: PropTypes.object.isRequired, }; static contextTypes = { intl: intlShape, }; render() { const { classes, children, actions, } = this.props; const { intl } = this.context; return (

Premium Feature

{children}
); } } PremiumFeatureContainer.wrappedComponent.propTypes = { children: oneOrManyChildElements.isRequired, actions: PropTypes.shape({ ui: PropTypes.shape({ openSettings: PropTypes.func.isRequired, }).isRequired, }).isRequired, };