import {useState} from 'react';
import SelectControl from 'sentry/components/forms/selectControl';
import {Provider as ReplayContextProvider} from 'sentry/components/replays/replayContext';
import ReplayController from 'sentry/components/replays/replayController';
import ReplayPlayer from 'sentry/components/replays/replayPlayer';
import rrwebEvents1 from './example_rrweb_events_1.json';
import rrwebEvents2 from './example_rrweb_events_2.json';
export default {
title: 'Components/Replays/Replay Page',
component: ReplayPlayer,
};
export const PlayerWithController = () => (
);
export const CustomSpeedOptions = () => (
);
export const ChangeEventsInput = () => {
const [selected, setSelected] = useState('example_1');
const events = {
example_1: rrwebEvents1,
example_2: rrwebEvents2,
};
return (
setSelected(opt.value)}
choices={[
['example_1', 'Example 1'],
['example_2', 'Example 2'],
]}
/>
);
};