// --- 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::>()
}
}
}