import{jsx as o}from"react/jsx-runtime";import{useAtomValue as m}from"jotai";import{getExamples as i}from"../../models/index.js";import{Row as s}from"../common/index.js";import{ExamplesWrap as f}from"./styled.components.js";import{Example as x}from"../PayloadSamples/index.js";import{globalParserAtom as n}from"../../jotai/store.js";import{layoutAtom as c}from"../../jotai/app.js";const j=({pointer:e,mimeType:r,encoding:t})=>{const p=m(n),a=m(c),l=i({parser:p,infoOrRef:{$ref:e},mime:r,encoding:t});return o(s,{layout:a,children:o(f,{children:o(x,{example:l,mimeType:r})})})};export{j as RedocExample};
