export default ({ activity }) => { const count = activity.length; const time = activity .map(a => a.endTime - a.startTime) .reduce((a, c) => a + c, 0); return (