import { useRouter } from 'next/router' import { Link } from 'components/Link' import { GraphqlItem } from './GraphqlItem' import { Table } from './Table' import { useTranslation } from 'components/hooks/useTranslation' import type { QueryT } from './types' type Props = { item: QueryT } export function Query({ item }: Props) { const { locale } = useRouter() const { t } = useTranslation('products') return (

{t('graphql.reference.type')}: {item.type}

{item.args.length > 0 && ( <>

{t('graphql.reference.arguments')}

)} ) }