import{f as e,k as t}from"./antd-NNbrPHoG.js";import{t as n}from"./react-vendor-nIJYBVRh.js";var r=n();function i({endpoint:n}){let i=n.transport??(n.websocket?`websocket`:n.tls?`tls`:`tcp`),a=[(0,r.jsx)(e,{color:i===`quic`?`green`:n.websocket?`blue`:`default`,children:i===`quic`?`MQTT/QUIC`:i===`websocket`||n.websocket?`WebSocket`:i===`tls`||n.tls?`MQTT/TLS`:`TCP MQTT`},`transport`)];return i===`websocket`&&a.push((0,r.jsx)(e,{children:n.websocket_path||`/mqtt`},`path`)),(n.tls||i===`tls`||i===`quic`)&&a.push((0,r.jsx)(e,{color:`purple`,children:i===`quic`?`TLS 1.3`:`TLS`},`tls`)),n.tls_require_client_cert&&a.push((0,r.jsx)(e,{color:`gold`,children:`mTLS`},`mtls`)),n.proxy_protocol&&a.push((0,r.jsx)(e,{color:`cyan`,children:`PROXY`},`proxy`)),(0,r.jsx)(t,{size:[4,4],wrap:!0,children:a})}export{i as t};