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