1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Move more files for src/graphql (#36577)

This commit is contained in:
Kevin Heis
2023-05-10 17:01:31 -07:00
committed by GitHub
parent 3583c8bcf6
commit 56f03a7020
26 changed files with 351 additions and 342 deletions

View File

@@ -0,0 +1,18 @@
import { GraphqlItem } from './GraphqlItem'
import { Table } from './Table'
import { useTranslation } from 'components/hooks/useTranslation'
import type { InputObjectT } from './types'
type Props = {
item: InputObjectT
}
export function InputObject({ item }: Props) {
const { t } = useTranslation('products')
const heading = t('graphql.reference.input_fields').replace('{{ GraphQLItemTitle }}', item.name)
return (
<GraphqlItem item={item} heading={heading}>
<Table fields={item.inputFields} />
</GraphqlItem>
)
}