UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

13 lines 547 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Grafaid } from '#lib/grafaid/index'; import { Box } from '@radix-ui/themes'; import { Field } from './Field.js'; export const FieldList = ({ data }) => { if (!Grafaid.Schema.TypesLike.isFielded(data)) return null; const fields = Grafaid.Schema.NodesLike.getFields(data); if (fields.length === 0) return null; return (_jsx(Box, { children: fields.map(field => (_jsx(Field, { mt: '3', data: field }, field.name))) })); }; //# sourceMappingURL=FieldList.js.map