overleaf/services/web/frontend/js/features/share-project-modal/components/send-invites.js
M Fahru a2e2dcccda Add new Link sharing upgrade prompt in project page (#8775)
GitOrigin-RevId: 984ab0770b3b920daa945ed8b190e7debf9e4a1d
2022-07-18 08:04:50 +00:00

16 lines
469 B
JavaScript

import { Row } from 'react-bootstrap'
import AddCollaborators from './add-collaborators'
import AddCollaboratorsUpgrade from './add-collaborators-upgrade'
import PropTypes from 'prop-types'
export default function SendInvites({ canAddCollaborators }) {
return (
<Row className="invite-controls">
{canAddCollaborators ? <AddCollaborators /> : <AddCollaboratorsUpgrade />}
</Row>
)
}
SendInvites.propTypes = {
canAddCollaborators: PropTypes.bool,
}