import type { ComponentPropsWithoutRef, FC } from 'react' import React from 'react' import { AspectImage } from 'theme-ui' import YoutubeIframe from '../Youtube/Iframe' import ProgressiveImage from '../ProgressiveImage' export type Item = | { type: 'video' props: ComponentPropsWithoutRef } | { type: 'image' props: ComponentPropsWithoutRef } interface Props { item: Item variant: string } const ProductImageGalleryPage: FC = ({ item, variant }) => item.type === 'image' ? ( ) : ( // TODO: Figure out a way of supporting other platforms, like vimeo ) export default ProductImageGalleryPage