UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 630 B
import{jsx as e}from"react/jsx-runtime";import{memo as n}from"react";import{useThemeHooks as r}from"@redocly/theme";import{StyledJsonViewer as m}from"./styled.js";import{CodePanel as s}from"../../definition/components/CodePanel.js";import{getTypeExample as l}from"../type/index.js";const d=1;function i({type:a}){const o=l({type:a,expandLevel:d}),{useTranslate:p}=r(),{translate:t}=p();return e(s,{className:"panel-response-samples","data-testid":"\u0441ode-panel",header:t("graphql.sample","Sample"),expanded:!0,isExpandable:!1,children:e(m,{data:o,expandLevel:1/0,$headerMarginTop:"0"})})}const h=n(i);export{h as TypeExample};