refactor(bd-5d8): Centralize SessionReplay types in types.ts

Move ReplaySpeed and ReplayState types to central types file for
consistency and re-export them from the component for external use.

Co-Authored-By: Claude Worker <noreply@anthropic.com>
This commit is contained in:
jeda 2026-03-03 14:39:39 +00:00
parent 562d4c4cdf
commit df5e54cd87

View file

@ -6,10 +6,10 @@
*/
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { LogEvent } from '../types';
import { LogEvent, ReplaySpeed, ReplayState } from '../types';
export type ReplaySpeed = 0.5 | 1 | 2 | 5 | 10;
export type ReplayState = 'idle' | 'playing' | 'paused' | 'ended';
// Re-export types for external use
export type { ReplaySpeed, ReplayState };
interface SessionReplayProps {
/** Events to replay */