import AddCollaborators from './add-collaborators' import AddCollaboratorsUpgrade from './add-collaborators-upgrade' import CollaboratorsLimitUpgrade from './collaborators-limit-upgrade' import AccessLevelsChanged from './access-levels-changed' import PropTypes from 'prop-types' import OLRow from '@/features/ui/components/ol/ol-row' export default function SendInvites({ canAddCollaborators, hasExceededCollaboratorLimit, haveAnyEditorsBeenDowngraded, somePendingEditorsResolved, }) { return ( {hasExceededCollaboratorLimit && !haveAnyEditorsBeenDowngraded && ( )} {haveAnyEditorsBeenDowngraded && ( )} {!canAddCollaborators && !hasExceededCollaboratorLimit && !haveAnyEditorsBeenDowngraded && } ) } SendInvites.propTypes = { canAddCollaborators: PropTypes.bool, hasExceededCollaboratorLimit: PropTypes.bool, haveAnyEditorsBeenDowngraded: PropTypes.bool, somePendingEditorsResolved: PropTypes.bool, }