mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
export default ({ activity }) => {
|
|
const count = activity.length;
|
|
const time = activity
|
|
.map(a => a.endTime - a.startTime)
|
|
.reduce((a, c) => a + c, 0);
|
|
|
|
return (
|
|
<dl>
|
|
<dt>かぶり回数</dt>
|
|
<dd>{count}</dd>
|
|
<dt>かぶり時間 (ms)</dt>
|
|
<dd>{time}</dd>
|
|
</dl>
|
|
);
|
|
};
|