UNPKG

@redocly/asyncapi-docs

Version:

Async API docs for Redocly Realm

11 lines (10 loc) 1.02 kB
import{Fragment as c,jsx as m,jsxs as s}from"react/jsx-runtime";import l from"styled-components";import{useAtomValue as f}from"jotai";import{makeDeepLink as i}from"@redocly/openapi-docs";import{H4 as g}from"@redocly/theme/components/Typography/H4";import{LinkIcon as h}from"@redocly/theme/icons/LinkIcon/LinkIcon";import{combineUrls as a}from"@redocly/theme/core/openapi";import{JsonSchema as j}from"./JsonSchema.js";import{routingBasePathAtom as b}from"../jotai-store/app.js";import{LinkToField as u}from"./common/index.js";const B=({parameters:n,id:r})=>{const t=f(b);return s(c,{children:[s(d,{children:[m(u,{to:a(t,i(r,"parameters"))}),"Parameters"]}),Object.entries(n).map(([e,o])=>{const p={type:"object",properties:{[e]:Object.assign(Object.assign({},o),{type:o.location||""})}};return m(j,{schema:p,slug:a(t,i(r,"parameters"))},e)})]})},d=l(g)` margin: var(--spacing-md) 0 0 0; position: relative; &:hover { ${h} { opacity: 1; visibility: visible; } } `;export{B as ChannelParameters};