setOtherTeamMenuState([
...otherTeamMenuState,
(otherTeamMenuState[index] = {
...otherTeamMenuState[index],
teamMenuOpen: !otherTeamMenuState[index].teamMenuOpen,
}),
])
}>
{otherTeamMenuState[index].teamMenuOpen ? (
) : (
)}
{otherTeam.name}
{!otherTeam.accepted && otherTeam.userId === session.data?.user.id && (
Inv.
)}