import { Action } from './types' ; export default function track ( ) { return ( next ) => ( action ) => { const plausible = ( window as any ) . plausible ; plausible && plausible ( action . type ) ; next ( action ) ; } ; }