import { useShareProjectContext } from './share-project-modal' import EditMember from './edit-member' import LinkSharing from './link-sharing' import Invite from './invite' import SendInvites from './send-invites' import ViewMember from './view-member' import OwnerInfo from './owner-info' import SendInvitesNotice from './send-invites-notice' import { useProjectContext } from '../../../shared/context/project-context' import RecaptchaConditions from '../../../shared/components/recaptcha-conditions' export default function ShareModalBody() { const { isAdmin } = useShareProjectContext() const project = useProjectContext() return ( <> {isAdmin && } {project.members.map(member => isAdmin ? ( ) : ( ) )} {project.invites.map(invite => ( ))} {isAdmin ? : } {!window.ExposedSettings.recaptchaDisabled?.invite && ( )} ) }