2021-03-12 05:23:46 -05:00
|
|
|
import { Row } from 'react-bootstrap'
|
|
|
|
import AddCollaborators from './add-collaborators'
|
|
|
|
import AddCollaboratorsUpgrade from './add-collaborators-upgrade'
|
2022-07-15 09:44:47 -04:00
|
|
|
import PropTypes from 'prop-types'
|
2021-03-12 05:23:46 -05:00
|
|
|
|
2022-07-15 09:44:47 -04:00
|
|
|
export default function SendInvites({ canAddCollaborators }) {
|
2021-03-12 05:23:46 -05:00
|
|
|
return (
|
|
|
|
<Row className="invite-controls">
|
|
|
|
{canAddCollaborators ? <AddCollaborators /> : <AddCollaboratorsUpgrade />}
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
2022-07-15 09:44:47 -04:00
|
|
|
|
|
|
|
SendInvites.propTypes = {
|
|
|
|
canAddCollaborators: PropTypes.bool,
|
|
|
|
}
|