import { Link } from '@/frame/components/Link' import { GraphqlItem } from './GraphqlItem' import { Notice } from './Notice' import { useTranslation } from '@/languages/components/useTranslation' import { Table } from './Table' import type { MutationT } from './types' import React from 'react' type Props = { item: MutationT } export function Mutation({ item }: Props) { const { t } = useTranslation('graphql') const heading = t('reference.input_fields').replace('{{ GraphQLItemTitle }}', item.name) const heading2 = t('reference.return_fields').replace('{{ GraphQLItemTitle }}', item.name) return ( {item.inputFields.map((input) => ( {input.preview && } {input.isDeprecated && }

))} ) }