//
//  EventInteractor.swift
//  AirbridgeReactNative
//
//  Created by WOF on 7/8/24.
//  Copyright © 2024 ab180. All rights reserved.
//

import React
import Airbridge

@objc(EventInteractor)
class EventInteractor: NSObject {
    @objc(trackEvent:semanticAttributes:customAttributes:)
    func trackEvent(
        _ category: String,
        _ semanticAttributes: [String: Any]?,
        _ customAttributes: [String: Any]?
    ) {
        Airbridge.trackEvent(
            category: category,
            semanticAttributes: semanticAttributes ?? [:],
            customAttributes: customAttributes ?? [:]
        )
    }
}
