Leave Team Button

@Composable
open fun LeaveTeamButton(goBack: Boolean, viewModel: TeamViewModelHelper, leaveTeam: MutableState<Boolean>, team: Team, tint: Color)

Function to leave from a team

Parameters

goBack

: whether after the action execute needs to navigation back

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