UNPKG

@caesar1030/react-analytics

Version:
15 lines (14 loc) 269 B
import { useGA as c } from "./react-analytics.es13.js"; function h({ eventName: e, eventParams: u, enabled: s = !0 }) { const { ga4Event: v } = c(); return { handleEvent: (E, t) => { s && v(e, u), t == null || t(E); } }; } export { h as useGAEvent };