// --- DOWNLOAD SPEED DROPDOWN ---
{move || format_speed(stats.get().down_rate)}
0 } fallback=|| ()>
{move || format!("(Limit: {})", format_speed(stats.get().down_limit.unwrap_or(0)))}
{
limits.clone().into_iter().map(|(val, label)| {
let is_active = move || {
let current = stats.get().down_limit.unwrap_or(0);
(current - val).abs() < 1024
};
view! {
-
}
}).collect::>()
}
// --- UPLOAD SPEED DROPDOWN ---
{move || format_speed(stats.get().up_rate)}
0 } fallback=|| ()>
{move || format!("(Limit: {})", format_speed(stats.get().up_limit.unwrap_or(0)))}
{
limits.clone().into_iter().map(|(val, label)| {
let is_active = move || {
let current = stats.get().up_limit.unwrap_or(0);
(current - val).abs() < 1024
};
view! {
-
}
}).collect::>()
}
{
let themes = vec![
"light", "dark", "dim", "nord", "cupcake", "dracula", "cyberpunk", "emerald", "sunset", "abyss"
];
themes.into_iter().map(|theme| {
let theme_name = theme.to_string();
let theme_name_for_class = theme_name.clone();
let theme_name_for_onclick = theme_name.clone();
view! {
-
}
}).collect::>()
}
}
}