UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 336 B
import{Fragment as s,jsx as p}from"react/jsx-runtime";import{memo as i,cloneElement as a}from"react";function c({contrast:e,fields:o,fieldExpandLevel:r=0,renderField:n}){return p(s,{children:o.map(t=>{if(!n)return null;const m=n({field:t,contrast:e,fieldExpandLevel:r});return a(m,{key:t.name})})})}const x=i(c);export{x as FieldList};