UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

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