use serde_json::Value;
use std::sync::Arc;
use tauri::{State, command};
use crate::client::TelemetryClient;
#[command]
pub fn track_event(
client: State<'_, Arc<TelemetryClient>>,
name: &str,
props: Option<Value>,
) -> Result<(), String> {
client.track_event(name, props)
}