const FormattedDate = require('react-intl').FormattedDate; const FormattedMessage = require('react-intl').FormattedMessage; 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('./add-to-studio.jsx'); const ReportModal = require('../../components/modal/report/modal.jsx'); require('./subactions.scss'); const Subactions = props => (
©
{' '} {/* eslint-disable react/jsx-sort-props */} {props.shareDate ? ( ) : 'Unshared'} {/* eslint-enable react/jsx-sort-props */}
{props.canAddToStudio && {props.addToStudioOpen && ( )} } {(props.canReport) && {props.reportOpen && ( )} }
); Subactions.propTypes = { addToStudioOpen: PropTypes.bool, canAddToStudio: PropTypes.bool, canReport: PropTypes.bool, onAddToStudioClicked: PropTypes.func, onAddToStudioClosed: PropTypes.func, onCopyProjectLink: PropTypes.func, onReportClicked: PropTypes.func.isRequired, onReportClose: PropTypes.func.isRequired, onReportSubmit: PropTypes.func.isRequired, onToggleStudio: PropTypes.func, reportOpen: PropTypes.bool, shareDate: PropTypes.string }; module.exports = Subactions;