openreplay/frontend/app/components/Session/Player/ClipPlayer/TimeTracker.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

19 lines
552 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';
function 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);