mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 18:51:33 +00:00
34 lines
792 B
JavaScript
Executable File
34 lines
792 B
JavaScript
Executable File
/**
|
|
*
|
|
* PluginHeaderTitle
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
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>
|
|
<h1 className={styles.pluginHeaderTitleName}>
|
|
<FormattedMessage {...this.props.title} defaultMessage={this.props.title.id} />
|
|
</h1>
|
|
<p className={styles.pluginHeaderTitleDescription}>
|
|
<FormattedMessage {...this.props.description} />
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
PluginHeaderTitle.propTypes = {
|
|
description: PropTypes.object.isRequired,
|
|
title: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default PluginHeaderTitle;
|