mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 16:29:18 +00:00
33 lines
746 B
JavaScript
33 lines
746 B
JavaScript
/**
|
|
*
|
|
* PluginHeaderTitle
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import styles from './styles.scss';
|
|
|
|
class PluginHeaderTitle extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
render() {
|
|
return (
|
|
<div className={styles.pluginHeaderTitle}>
|
|
<h1 className={styles.pluginHeaderTitleName}>
|
|
<FormattedMessage {...this.props.title} />
|
|
</h1>
|
|
<p className={styles.pluginHeaderTitleDescription}>
|
|
<FormattedMessage {...this.props.description} />
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
PluginHeaderTitle.propTypes = {
|
|
title: React.PropTypes.object,
|
|
description: React.PropTypes.object,
|
|
};
|
|
|
|
export default PluginHeaderTitle;
|