import React, { Component } from 'react' import { ZOOM_STEPS } from '../constants' import { timestamp } from '../../../util' const Cursor = ({ timeline }) => { const { start_ts, zoom, cursor_ts, duration } = timeline const secondsPerPixel = ZOOM_STEPS[zoom] * 0.1 const y = (cursor_ts - start_ts) / secondsPerPixel return (