UNPKG

@redocly/asyncapi-docs

Version:

Async API docs for Redocly Realm

9 lines (8 loc) 652 B
import{jsx as e}from"react/jsx-runtime";import{Panel as m,PanelBody as n,PanelHeader as d}from"@redocly/theme";import i from"styled-components";import p from"react";import{Server as c}from"./Server";import{useProtocolLabels as f}from"../hooks";const L=p.memo(({servers:r,showDetails:o,hideHeader:a})=>{const{getProtocolLabel:l}=f();return e(P,{className:"panel-messages-samples",header:()=>a?null:e(d,{isExpandable:!1,children:l("servers")}),children:r.map((s,t)=>e(c,{server:s,showDetails:o},t))})}),P=i(m)` ${n} { padding: 0; > *:not(:last-child) { border-bottom: var(--panel-border-local); } } `;export{L as ServersListPanel};