import { Link } from '@/frame/components/Link' import { Notice } from './Notice' import { useTranslation } from '@/languages/components/useTranslation' import { FieldT } from './types' type Props = { fields: FieldT[] } export function Table({ fields }: Props) { const { t } = useTranslation('graphql') const tableName = t('reference.name') const tableDescription = t('reference.description') return (
| {tableName} | {tableDescription} |
|---|---|
|
|
{field.description ? (
) : (
'N/A'
)}
{field.defaultValue !== undefined && (
The default value is
{field.arguments.map((argument, index) => (
)}
|