import React from 'react' import { useTranslation } from 'components/hooks/useTranslation' import { GraphqlItem } from './GraphqlItem' import type { EnumT } from './types' type Props = { item: EnumT } export function Enum({ item }: Props) { const { t } = useTranslation('products') const heading = t('graphql.reference.values').replace('{{ GraphQLItemTitle }}', item.name) return ( {item.values.map((value) => (

{value.name}

))} ) }