use leptos::prelude::*;
use super::location_selection_page::{DynamicLocationSelectionPage, LocationType};

#[component]
pub fn CitySelectionPage(
    on_back: Callback<()>,
    #[prop(optional)] _selected_cities: Option<RwSignal<Vec<String>>>,
    #[prop(optional)] id: Option<&'static str>,
) -> impl IntoView {
    view! {
        <DynamicLocationSelectionPage
            location_type=LocationType::City
            on_back=on_back
            id=id.unwrap_or("city-selection-page")
        />
    }
}
