import React from 'react' import { AspectImage, Box } from 'theme-ui' import type { FC } from 'react' import YoutubeThumb from '../../Youtube/Thumb' import type { Item } from '../Page' interface Props { variant: string selectedPage: number allItems: Item[] onSelect: (index: number) => void } const Miniatures: FC = ({ variant, onSelect, allItems, selectedPage, }) => ( <> {allItems.map((item, index) => ( onSelect(index)} > {item.type === 'image' ? ( ) : ( // TODO: Figure out a way of supporting other platforms, like vimeo )} ))} ) export default Miniatures