* ui: start highlight ui * ui: tag items * ui: connecting highlights to notes api... * Highlight feature refinements (#2948) * ui: move clips player to foss, connect notes api to hl * ui: tune note/hl editing, prevent zoom slider body from jumping around * ui: safe check for tag * ui: fix thumbnail gen * ui: fix thumbnail gen * ui: make player modal wider, add shadow * ui: custom warn barge for clips * ui: swap icon for note event wrapper * ui: rm other, fix cancel * ui: moving around creation modal * ui: bg tint * ui: rm disabled for text btn * ui: fix ownership sorting * ui: close player on bg click * ui: fix query, fix min distance for default range * ui: move hl list header out of list comp * ui: spot list header segmented size * Various improvements in highlights (#2955) * ui: update hl in hlPanel comp * ui: rm debug * ui: fix icons file --------- Co-authored-by: Sudheer Salavadi <connect.uxmaster@gmail.com>
24 lines
609 B
TypeScript
24 lines
609 B
TypeScript
import React from 'react';
|
|
import {PlayerContext} from 'App/components/Session/playerContext';
|
|
import {observer} from 'mobx-react-lite';
|
|
import {ProgressBar} from 'App/player-ui'
|
|
|
|
const TimeTracker = ({scale, live = false, left}) => {
|
|
const {store} = React.useContext(PlayerContext)
|
|
const {time, range} = store.get()
|
|
|
|
const adjustedTime = time - range[0]
|
|
|
|
return (
|
|
<ProgressBar
|
|
scale={scale}
|
|
live={live}
|
|
left={left}
|
|
time={adjustedTime}
|
|
/>
|
|
);
|
|
}
|
|
|
|
TimeTracker.displayName = 'TimeTracker';
|
|
|
|
export default observer(TimeTracker);
|