setOtherTeamMenuState([
...otherTeamMenuState,
(otherTeamMenuState[index] = {
...otherTeamMenuState[index],
teamMenuOpen: !otherTeamMenuState[index].teamMenuOpen,
}),
])
}>
{otherTeamMenuState[index].teamMenuOpen ? (
) : (
)}
{!otherTeam.parentId && (
)}
{otherTeam.name}