import RichText from '@graphcommerce/graphcms-ui/RichText' import { Image } from '@graphcommerce/image' import { RowImageText } from '@graphcommerce/next-ui' import { Typography, useTheme } from '@material-ui/core' import React from 'react' import { ProductFeatureMediaFragment } from './ProductFeatureMedia.gql' import { RowProductFeatureFragment } from './RowProductFeature.gql' type ProductFeatureProps = RowProductFeatureFragment & ProductFeatureMediaFragment export default function RowProductFeature(props: ProductFeatureProps) { const { copy, topic, media_gallery } = props const item = media_gallery?.[2] ?? media_gallery?.[0] const theme = useTheme() if (!item) return null return ( ) } > {topic && {topic}} ) }