Signup Screen
fun SignupScreen(navController: NavController, controllers: AppControllers? = null, onCreateEntrant: suspend (String, String, String) -> Boolean = { name, email, phone ->
requireNotNull(controllers)
.users
.createEntrant(name, email, phone)
})
Displays the account registration screen.
Requires the user's name, email, and phone number and attempts to create an entrant account. Displays an error message if registration fails.
Parameters
nav Controller
The NavController used for navigation.
controllers
Optional AppControllers used for account creation when no custom callback is provided.
on Create Entrant
Callback that submits user information and returns whether account creation succeeded. Defaults to using the user controller.