use tauri::{command, AppHandle, Runtime};
use crate::models::*;
use crate::IntentExt;
use crate::Result;
#[command]
pub(crate) async fn open_intent<R: Runtime>(
app: AppHandle<R>,
payload: OpenIntentRequest,
) -> Result<OpenIntentResponse> {
app.intent().open_intent(payload).await
}