Country Picker Panel
fun CountryPickerPanel(state: CountryPickerState, onCountrySelected: (Country) -> Unit, modifier: Modifier = Modifier, onSelectionConfirmed: (Set<Country>) -> Unit = {}, onClose: () -> Unit? = null, recentCountryStore: RecentCountryStore = NoOpRecentCountryStore, title: UiText = UiText.resource(Res.string.ccp_select_country), subtitle: UiText? = UiText.resource(Res.string.ccp_select_country_subtitle), style: CountryPickerStyle = CountryPickerTheme.style, flagContent: @Composable (Country) -> Unit? = null, listItemContent: @Composable (CountryListItemScope) -> Unit? = null, emptyContent: @Composable (String) -> Unit? = null)(source)
The complete picker — header, search, region filter, quick picks, list, every loading and empty state, and the multiple-selection bar — with no container around it.
CountryPickerSheet wraps this in a sheet or dialog. Use it directly to put the picker inline: on a full-screen route, inside a pane of a two-pane layout, or in an onboarding step.
Parameters
on Close
Invoked by the close button, and after a single selection when the config closes on selection. null hides the close button and keeps the panel in place after selection.