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