import { TrackerEvent } from 'common/services/analytics/tracker' ; function dashboardEvent ( action , label = null , value = null ) { return { category : 'dashboard' , action , label , value , } ; } export const Signup = dashboardEvent ( 'signup' ) ; export const Login = dashboardEvent ( 'login' ) ; export const Logout = dashboardEvent ( 'logout' ) ; export const AddClient = dashboardEvent ( 'add_client' ) ; export const Overview = ( clientName ) => dashboardEvent ( 'overview' , clientName ) ; export const Journal = ( clientName ) => dashboardEvent ( 'journal' , clientName ) ; export const Sessions = ( clientName ) => dashboardEvent ( 'sessions' , clientName ) ; export const Play = ( pageName , clientName ) => dashboardEvent ( 'play' , pageName , clientName ) ; export const SessionUpload = ( clientName , sessionName ) => dashboardEvent ( 'session_upload' , clientName , sessionName ) ;