import React from "react"; import { getCorrectDate } from "@components/Calendar/calendarHelper"; import "./archiveTasksItem.scss"; const ArchiveTasksItem = ({ task, index }) => { return (

{task.title}

{task.timers.length == 0 ? "-" : task.timers.map((item) => { let time = new Date(item.deltaSeconds * 1000) .toISOString() .slice(11, 19); return `${time}`; })}

{getCorrectDate(task.updated_at)}

); }; export default ArchiveTasksItem;