use leptos::prelude::*; use crate::components::ui::context_menu::{ ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger, }; use crate::components::ui::button_action::ButtonAction; use crate::components::ui::button::ButtonVariant; #[component] pub fn TorrentContextMenu( children: Children, torrent_hash: String, on_action: Callback<(String, String)>, ) -> impl IntoView { let hash_c1 = torrent_hash.clone(); let hash_c2 = torrent_hash.clone(); let hash_c3 = torrent_hash.clone(); let hash_c4 = torrent_hash.clone(); let on_action_stored = StoredValue::new(on_action); view! { {children()} "Başlat" "Durdur"
// --- Modern Hold-to-Action Buttons ---
"Sil (Basılı Tut)" "Verilerle Sil (Basılı Tut)"
} }