33 lines
765 B
JavaScript
Raw Normal View History

2017-03-15 11:48:56 +01:00
/**
*
* PluginHeaderTitle
*
*/
import PropTypes from 'prop-types';
2017-03-15 11:48:56 +01:00
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
class PluginHeaderTitle extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
2017-08-30 17:56:52 +02:00
<div>
2017-03-15 11:48:56 +01:00
<h1 className={styles.pluginHeaderTitleName}>
<FormattedMessage {...this.props.title} defaultMessage={this.props.title.id} />
2017-03-15 11:48:56 +01:00
</h1>
<p className={styles.pluginHeaderTitleDescription}>
<FormattedMessage {...this.props.description} />
2017-03-15 11:48:56 +01:00
</p>
</div>
);
}
}
PluginHeaderTitle.propTypes = {
description: PropTypes.object.isRequired,
title: PropTypes.object.isRequired,
};
2017-03-15 11:48:56 +01:00
export default PluginHeaderTitle;