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

{value.name}

))} ) }