UNPKG

@redocly/asyncapi-docs

Version:

Async API docs for Redocly Realm

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