import { DeleteTwoTone, PlayCircleFilled, StopFilled, LeftCircleFilled, RightCircleFilled, DownCircleFilled, UpCircleFilled, EditFilled } from "@ant-design/icons"; import { Button, Card, Col, Input, Progress, Space, Popconfirm, Grid } from "antd"; import ButtonGroup from "antd/lib/button/button-group"; import { useState } from "react"; import TimePicker from "./TimePicker"; const { useBreakpoint } = Grid; const Timer = ({ name, started, start, stop, setName, initialTime, time, setTime, remove, index, first, last, moveTimer }) => { const [edit, setEdit] = useState(false); const toggleEdit = () => { setEdit(!edit); } const screens = useBreakpoint(); let seconds = ("0" + (Math.floor(time) % 60)).slice(-2); let minutes = ("0" + (Math.floor(time / 60) % 60)).slice(-2); let hours = ("0" + Math.floor(time / 3600)).slice(-2); return