import BaseEvent from './BaseEvent' ; declare global { interface Window { plausible : any ; } } export const plausibleCustomEvent = ( event ) => { const plausible = window . plausible ; if ( plausible ) { const eventName = event . featureName ? `${ event . featureName } ${ event . eventName }` : event . eventName ; plausible ( eventName , { props : event . params , ... ( event . callback && { callback : event . callback } ) , } ) ; } } ; export const plausibleOutboundLinkEvent = ( ) => { const plausible = window . plausible ; if ( plausible ) { plausible ( 'Outbound Link: Click' ) ; } } ;