import { useRouter } from 'next/router' import { Link } from 'components/Link' import { GraphqlItem } from './GraphqlItem' import { Notice } from './Notice' import { useTranslation } from 'components/hooks/useTranslation' import { Table } from './Table' import type { MutationT } from './types' import React from 'react' type Props = { item: MutationT } export function Mutation({ item }: Props) { const { locale } = useRouter() const { t } = useTranslation('products') const heading = t('graphql.reference.input_fields') const heading2 = t('graphql.reference.return_fields') return ( {item.inputFields.map((input) => ( {input.preview && } {input.isDeprecated && }

{heading2}

))} ) }