import { faArrowDown, faArrowUp, faCode, faPause, faPlay, faRotateLeft, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useRef, useState } from "react"; const capitalize = (str: string) => { if (str.length) { return str[0].toLocaleUpperCase() + str.slice(1).toLocaleLowerCase(); } return str; }; interface Timer { name: string; length: number; incrementLength: any; // To-DO: specify type decrementLength: any; // To-DO: specify type colorTheme: string; } function TimerControl({ name, length, incrementLength, decrementLength, colorTheme, }: Timer) { return (