import type { ReactElement } from 'react' import React from 'react' import styled from 'styled-components/macro' import { VolumeBar } from 'features/StreamPlayer/components/VolumeBar' import { Controls, Fullscreen, PlayStop, } from 'features/StreamPlayer/styled' import { ProgressBar } from '.' export default { component: ProgressBar, title: 'ProgressBarWithChapters', } const Wrapper = styled.div` position: relative; width: 95vw; height: 50vh; left: 50%; transform: translateX(-50%); background-color: #000; ` const callback = () => {} const renderInControls = (progressBarElement: ReactElement) => ( {progressBarElement} ) const duration = 70000 const chapters = [ { duration: 30000, endMs: 30000, period: 0, startMs: 0, url: '', }, { duration: 30000, endMs: 60000, period: 0, startMs: 30000, url: '', }, { duration: 10000, endMs: 70000, period: 0, startMs: 60000, url: '', }, ] export const Empty = () => renderInControls( , ) export const HalfLoaded = () => renderInControls( , ) export const HalfPlayed = () => renderInControls( , ) export const Loaded40AndPlayed20 = () => renderInControls( , )