use leptos::prelude::*; use crate::components::ui::context_menu::{ ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger, }; #[component] pub fn TorrentContextMenu( children: Children, torrent_hash: String, on_action: Callback<(String, String)>, ) -> impl IntoView { let hash = torrent_hash.clone(); let on_click = move |action: &str| { on_action.run((action.to_string(), hash.clone())); }; view! { {children()} "Başlat" "Durdur" "Sil" "Verilerle Birlikte Sil" } }