LeaveTeamButton

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

viewModel

: the view model used to execute this operation

leaveTeam

: whether show the warn EquinoxAlertDialog about the team leaving

team

: the team from leave

tint

: the tint for the OptionButton