In the declaration/assignment expression:
val (selectedOption, onOptionSelected) = remember { mutableStateOf(radioOptions[0]) }
I'm not familiar with this syntax. I appears to be initializing and assigning two variables, selectedOption and onOptionSelected.
I'm using code similar to this in my app and need to hoist this up the compose chain. selectedOption can be set as a parameter for the child compose as type String. But onOptionSelected is type (String) -> Unit. I'm able to hoist it but if I try to create a @Preview and need to pass in a sample value for it, what do I use?