import { useStoriesContext } from '../../Hooks'; import { ProgressBar } from '../ProgressBar'; import { IStoryIndexedObject } from '../../types'; import styles from './progress.styles.css'; interface IProgressProps { activeStoryIndex: number; isPaused: boolean; } export function Progress(props: IProgressProps) { const { stories, classNames } = useStoriesContext(); return (
{stories.map((story: IStoryIndexedObject) => ( ))}
); }