import RichText from '@graphcommerce/graphcms-ui/RichText' import { Image } from '@graphcommerce/image' import { RowImageTextBoxed } from '@graphcommerce/next-ui' import { Typography, useTheme } from '@material-ui/core' import React from 'react' import { ProductFeatureMediaBoxedFragment } from './ProductFeatureMediaBoxed.gql' import { RowProductFeatureBoxedFragment } from './RowProductFeatureBoxed.gql' type RowProductFeatureBoxedProps = RowProductFeatureBoxedFragment & ProductFeatureMediaBoxedFragment export default function RowProductFeatureBoxedBoxed(props: RowProductFeatureBoxedProps) { const { copy, topic, media_gallery } = props const item = media_gallery?.[1] ?? media_gallery?.[0] const theme = useTheme() if (!item) return null return ( ) } > {topic && {topic}} ) }