Leave Team Button
open fun LeaveTeamButton(activity: Activity?, viewModel: TeamViewModelHelper, leaveTeam: MutableState<Boolean>, team: Team, tint: Color)
Function to leave from a team
Parameters
activity
: the activity where the action has been invoked
view Model
: the view model used to execute this operation
leave Team
: whether show the warn EquinoxAlertDialog about the team leaving
team
: the team from leave
tint
: the tint for the OptionButton