({ item }: Props)
| 11 | } |
| 12 | |
| 13 | export function Query({ item }: Props) { |
| 14 | const { locale } = useRouter() |
| 15 | const { t } = useTranslation('products') |
| 16 | |
| 17 | return ( |
| 18 | <GraphqlItem item={item} headingLevel={3}> |
| 19 | <div> |
| 20 | <p> |
| 21 | <b>{t('graphql.reference.type')}: </b> |
| 22 | <Link href={item.href} locale={locale}> |
| 23 | {item.type} |
| 24 | </Link> |
| 25 | </p> |
| 26 | </div> |
| 27 | |
| 28 | <div> |
| 29 | {item.args.length > 0 && ( |
| 30 | <> |
| 31 | <h4>{t('graphql.reference.arguments')}</h4> |
| 32 | <Table fields={item.args} /> |
| 33 | </> |
| 34 | )} |
| 35 | </div> |
| 36 | </GraphqlItem> |
| 37 | ) |
| 38 | } |
nothing calls this directly
no test coverage detected