mirror of
https://github.com/strapi/strapi.git
synced 2025-08-29 11:15:55 +00:00
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
/**
|
|
*
|
|
* PluginHeader
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import PluginHeaderTitle from 'components/PluginHeaderTitle';
|
|
import PluginHeaderActions from 'components/PluginHeaderActions';
|
|
|
|
import styles from './styles.scss';
|
|
|
|
class PluginHeader extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
render() {
|
|
return (
|
|
<div className={`${styles.pluginHeader} row`}>
|
|
<div className="col-lg-7">
|
|
<PluginHeaderTitle
|
|
title={this.props.title}
|
|
description={this.props.description}
|
|
/>
|
|
</div>
|
|
<div className="col-lg-2 justify-content-end">
|
|
<PluginHeaderActions
|
|
actions={this.props.subActions || []}
|
|
/>
|
|
</div>
|
|
<div className="col-lg-3 justify-content-end">
|
|
<PluginHeaderActions
|
|
actions={this.props.actions || []}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
PluginHeader.propTypes = {
|
|
actions: React.PropTypes.array.isRequired,
|
|
subActions: React.PropTypes.array,
|
|
description: React.PropTypes.object.isRequired,
|
|
title: React.PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default PluginHeader;
|