import { useState } from 'react'; import { Popup, Icon, Label } from 'UI'; import typeToIcon from './typeToIcon'; import cn from 'classnames'; import styles from './timelineTab.css'; import ImageViewer from '../ImageViewer/ImageViewer'; const formatExecutionTime = ({ milliseconds }) => (milliseconds >= 1000 ? `${ Math.round(milliseconds / 1000) } s` : `${ milliseconds } ms`); const formatStartTime = (time, firstStepTime) => time.diff(firstStepTime).toFormat('mm:ss'); const renderStep = (step, makeGotoLogHandler, startedAt, onThumbClick, index) => (