import { isTauri } from "./ipc"; /** Opens a web or `mailto:` URL with the system handler (the default browser). */ export async function openExternalUrl(url: string): Promise { if (!isTauri()) { window.open(url, "_blank", "noopener"); return; } const { openUrl } = await import("@tauri-apps/plugin-opener"); await openUrl(url); }