2018-05-31 16:49:17 -04:00
|
|
|
const PropTypes = require('prop-types');
|
|
|
|
const React = require('react');
|
2018-10-16 11:38:26 -04:00
|
|
|
const FormattedMessage = require('react-intl').FormattedMessage;
|
2018-05-31 16:49:17 -04:00
|
|
|
const FlexRow = require('../../components/flex-row/flex-row.jsx');
|
|
|
|
const Button = require('../../components/forms/button.jsx');
|
|
|
|
|
|
|
|
require('./share-banner.scss');
|
|
|
|
|
2018-10-16 13:02:22 -04:00
|
|
|
const ShareBanner = ({onShare}) => (
|
|
|
|
<div className="share-banner-outer">
|
|
|
|
<FlexRow className="inner share-banner">
|
|
|
|
<span className="share-text">
|
2018-10-24 09:35:30 -04:00
|
|
|
<FormattedMessage id="project.share.notShared" />
|
2018-10-16 13:02:22 -04:00
|
|
|
</span>
|
|
|
|
<Button
|
|
|
|
className="button share-button"
|
|
|
|
onClick={onShare}
|
|
|
|
>
|
2018-10-24 09:35:30 -04:00
|
|
|
<FormattedMessage id="project.share.shareButton" />
|
2018-10-16 13:02:22 -04:00
|
|
|
</Button>
|
|
|
|
</FlexRow>
|
|
|
|
</div>
|
|
|
|
);
|
2018-05-31 16:49:17 -04:00
|
|
|
|
|
|
|
ShareBanner.propTypes = {
|
2018-10-16 13:02:22 -04:00
|
|
|
onShare: PropTypes.func
|
2018-05-31 16:49:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = ShareBanner;
|