const FormattedDate = require('react-intl').FormattedDate; const PropTypes = require('prop-types'); const React = require('react'); const FlexRow = require('../../components/flex-row/flex-row.jsx'); const Button = require('../../components/forms/button.jsx'); const AddToStudioModal = require('../../components/modal/addtostudio/container.jsx'); const ReportModal = require('../../components/modal/report/modal.jsx'); const projectShape = require('./projectshape.jsx').projectShape; const Subactions = props => { const shareDate = ((props.projectInfo.history && props.projectInfo.history.shared)) ? props.projectInfo.history.shared : ''; return (
©
{' '} {/* eslint-disable react/jsx-sort-props */} {shareDate === null ? 'Unshared' : } {/* eslint-enable react/jsx-sort-props */}
{(props.isLoggedIn && props.userOwnsProject) && , } {(props.isLoggedIn && !props.userOwnsProject) && , }
); }; Subactions.propTypes = { addToStudioOpen: PropTypes.bool.isRequired, isLoggedIn: PropTypes.bool.isRequired, onAddToStudioClicked: PropTypes.func.isRequired, onAddToStudioClosed: PropTypes.func.isRequired, onReportClicked: PropTypes.func.isRequired, onReportClose: PropTypes.func.isRequired, onReportSubmit: PropTypes.func.isRequired, onToggleStudio: PropTypes.func.isRequired, projectInfo: projectShape.isRequired, reportOpen: PropTypes.bool.isRequired, studios: PropTypes.arrayOf(PropTypes.object).isRequired, userOwnsProject: PropTypes.bool.isRequired }; module.exports = Subactions;