openreplay/frontend/app/components/Session_/Player/Controls/TimelineTracker.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

26 lines
702 B
TypeScript

import React, { useContext } from 'react';
import { observer } from 'mobx-react-lite';
import DraggableCircle from 'Components/Session_/Player/Controls/components/DraggableCircle';
import TimeTracker from 'Components/Session_/Player/Controls/TimeTracker';
import { PlayerContext } from 'Components/Session/playerContext';
function TimelineTracker({
scale,
onDragEnd,
}: {
scale: number;
onDragEnd: () => void;
}) {
const { store } = useContext(PlayerContext);
const { time } = store.get();
return (
<>
<DraggableCircle left={time * scale} onDrop={onDragEnd} />
<TimeTracker scale={scale} left={time * scale} />
</>
);
}
export default observer(TimelineTracker);