ThemeAlertDialog
fun ThemeAlertDialog(themeState: MutableState<ThemeEnum> = themePrefs.themeState, writePref: (ThemeEnum) -> Unit = themePrefs.preferenceHelper.let { it::themeEnum::set }, dismissDialog: () -> Unit = {})
AlertDialog for selecting a theme. Should use directly in the composable destination that wants to show that dialog.
Parameters
themeState
MutableState of the current theme.
writePref
Function to write the selected theme to preferences.
dismissDialog
Function to dismiss the dialog.