@redocly/graphql-docs
Version:
Redocly GraphQL docs
2 lines (1 loc) • 513 B
JavaScript
import{jsx as t,Fragment as i,jsxs as o}from"react/jsx-runtime";import{memo as d}from"react";import{FieldsGroupHeader as p}from"../../common/components/Headers.js";import{ArgumentView as f}from"./ArgumentView.js";function u({args:m,renderField:n,fieldExpandLevel:s=0,title:e}){return o(i,{children:[e&&t(p,{"data-testid":"arguments-title",children:e}),m.map((r,a)=>t(f,{"data-testid":"arguments-view",argument:r,renderField:n,fieldExpandLevel:s,firstOfType:a===0},r.name))]})}const j=d(u);export{j as Arguments};