2017-03-15 11:48:56 +01:00
|
|
|
/**
|
2017-04-21 17:19:41 +02:00
|
|
|
*
|
|
|
|
* PluginHeader
|
|
|
|
*
|
|
|
|
*/
|
2017-03-15 11:48:56 +01:00
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import PluginHeaderTitle from 'components/PluginHeaderTitle';
|
2017-04-21 17:19:41 +02:00
|
|
|
import PluginHeaderActions from 'components/PluginHeaderActions';
|
2017-03-15 11:48:56 +01:00
|
|
|
|
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
|
|
class PluginHeader extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div className={`${styles.pluginHeader} row`}>
|
2017-06-08 17:16:20 +01:00
|
|
|
<div className="col-lg-6">
|
|
|
|
<PluginHeaderTitle
|
|
|
|
title={this.props.title}
|
|
|
|
description={this.props.description}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div className="col-lg-6">
|
|
|
|
<PluginHeaderActions
|
|
|
|
actions={this.props.actions}
|
|
|
|
/>
|
2017-03-15 11:48:56 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PluginHeader.propTypes = {
|
|
|
|
title: React.PropTypes.object,
|
|
|
|
description: React.PropTypes.object,
|
2017-04-21 17:19:41 +02:00
|
|
|
actions: React.PropTypes.array,
|
2017-03-15 11:48:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default PluginHeader;
|