2024-06-25 02:08:24 -04:00
|
|
|
import { Row } from 'react-bootstrap'
|
|
|
|
import AddCollaborators from './add-collaborators'
|
|
|
|
import AddCollaboratorsUpgrade from './add-collaborators-upgrade'
|
|
|
|
import CollaboratorsLimitUpgrade from './collaborators-limit-upgrade'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
|
|
|
export default function SendInvites({
|
|
|
|
canAddCollaborators,
|
|
|
|
hasExceededCollaboratorLimit,
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<Row className="invite-controls">
|
|
|
|
{hasExceededCollaboratorLimit && <AddCollaboratorsUpgrade />}
|
|
|
|
{!canAddCollaborators && !hasExceededCollaboratorLimit && (
|
|
|
|
<CollaboratorsLimitUpgrade />
|
|
|
|
)}
|
2024-07-01 04:30:04 -04:00
|
|
|
<AddCollaborators readOnly={!canAddCollaborators} />
|
2024-06-25 02:08:24 -04:00
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
SendInvites.propTypes = {
|
|
|
|
canAddCollaborators: PropTypes.bool,
|
|
|
|
hasExceededCollaboratorLimit: PropTypes.bool,
|
|
|
|
}
|