use dioxus::prelude::*; use crate::components::ToolEmbed; use crate::i18n::{t, Locale}; use crate::models::ServiceUrlsContext; /// Agents page embedding the LangGraph agent builder. /// /// When `langgraph_url` is configured, embeds the service in an iframe /// with a pop-out button. Otherwise shows a "Not Configured" placeholder. #[component] pub fn AgentsPage() -> Element { let locale = use_context::>(); let svc = use_context::>(); let l = *locale.read(); let url = svc.read().langgraph_url.clone(); rsx! { ToolEmbed { url, title: t(l, "developer.agents_title"), description: t(l, "developer.agents_desc"), icon: "A", launch_label: t(l, "developer.launch_agents"), } } }