import map from 'lodash/map' import type { Chapter } from '../../types' import { ChapterList, ChapterContainer, LoadedProgress, PlayedProgress, } from './styled' type ChapterWithStyles = Chapter & { loaded: number, played: number, width: number, } type Props = { chapters: Array, } export const Chapters = ({ chapters }: Props) => ( { map( chapters, ({ loaded, played, width, }, index) => ( ), ) } )