CreatePollScreen

fun CreatePollScreen(onBack: () -> Unit, onCreatePoll: (CreatePollParams) -> Unit)

Screen for creating a new poll with options and configuration switches.

Parameters

onBack

Called when the user navigates back from the poll creation screen (via back press or discard). Resets the ViewModel state.

onCreatePoll

Called when the user submits a new poll configuration.