import {clockState,clockJournalState} from './config'; export const getClockState = (id,journal = false) => { let arr = journal ? clockJournalState.filter(v=>v.id === id) : clockState.filter(v=>v.id === id); if(arr.length > 0){ return arr[0]; }else{ return {}; } }