updateMemberRole(member, newRole)}
/>
removeMember(member)}
member={member}
/>
);
}
function RemoveButton(props: {
hasOrgRoleFromTeam: boolean;
hasWriteAccess: boolean;
isOrgOwner: boolean;
isSelf: boolean;
member: TeamMember;
onClick: () => void;
}) {
const {member, hasWriteAccess, isOrgOwner, isSelf, hasOrgRoleFromTeam, onClick} = props;
const canRemoveMember = hasWriteAccess || isSelf;
if (!canRemoveMember) {
return (