2021-03-12 05:23:46 -05:00
|
|
|
import AddCollaborators from './add-collaborators'
|
|
|
|
import AddCollaboratorsUpgrade from './add-collaborators-upgrade'
|
2022-07-15 09:44:47 -04:00
|
|
|
import PropTypes from 'prop-types'
|
2024-10-09 08:13:50 -04:00
|
|
|
import OLRow from '@/features/ui/components/ol/ol-row'
|
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 (
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLRow className="invite-controls">
|
2021-03-12 05:23:46 -05:00
|
|
|
{canAddCollaborators ? <AddCollaborators /> : <AddCollaboratorsUpgrade />}
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLRow>
|
2021-03-12 05:23:46 -05:00
|
|
|
)
|
|
|
|
}
|
2022-07-15 09:44:47 -04:00
|
|
|
|
|
|
|
SendInvites.propTypes = {
|
|
|
|
canAddCollaborators: PropTypes.bool,
|
|
|
|
}
|