import { useHive } from "../store";
import { enterReplay, exitReplay, seekReplay, playReplay, pauseReplay, setReplaySpeed } from "../store/replay";
// Session replay transport (Phase F / K5). When active it drives the Overview's
// topology, activity feed, and chart from the replay slice (that wiring lives in
// Overview); this component is only the controls: enter/exit, play/pause, speed,
// and the scrubber. The replay store slice is separate from live state, so SSE
// keeps updating the live view underneath.
export default function Replay({ sessionId }: { sessionId: string }) {
const replay = useHive((s) => s.replay);
const active = replay.active && replay.sessionId === sessionId;
if (!active) {
return (