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