export default ({ activity }) => { const count = activity.length; const time = activity .map(a => a.endTime - a.startTime) .reduce((a, c) => a + c, 0); return (
かぶり回数
{count}
かぶり時間 (ms)
{time}
); };