UNPKG

cinnecta-logs

Version:

Biblioteca para centralizar a configuração e eventos personalizados do Highlight.run, compatível com React e Next.js.

2 lines (1 loc) 237 B
import{H as r}from"highlight.run";import{useEffect as i}from"react";var c=t=>{i(()=>{let n=Date.now();return()=>{let o=Date.now(),e=Math.round((o-n)/1e3);e!==0&&r.track("time_spent_on_screen",{time:e,pathname:t})}},[t])};export{c as a};