@redocly/graphql-docs
Version:
Redocly GraphQL docs
2 lines (1 loc) • 497 B
JavaScript
import{jsx as m}from"react/jsx-runtime";import{isEnumType as r}from"graphql";import{memo as n,useMemo as s}from"react";import{Box as u}from"../../common/index.js";import{useStore as i}from"../../app/index.js";import{ValueList as l}from"../components/ValueList.js";function p({name:t}){const o=i(),e=s(()=>o?.getType(t),[t,o]);return r(e)?m(u,{"data-testid":e.name,direction:"column",children:e.getValues().length?m(l,{values:e.getValues()}):null}):null}const x=n(p);export{x as EnumItemEmbedded};