import{jsx as s,jsxs as t}from"react/jsx-runtime";import{memo as m}from"react";import{HeadersCaption as a,StyledHeadersProperties as p}from"./styled.js";import{PropertyDetails as l}from"../PropertyDetails/index.js";import{LinkToField as d}from"../common/LinkToField.js";import{useTranslate as f}from"../../hooks/index.js";function u({headers:e,deepLink:r}){const n=f();return e===void 0||e.length===0?null:t(p,{children:[t(a,{children:[r&&s(d,{to:r}),n("openapi.header","Headers")]}),e.map((o,i)=>s(l,{isFirst:i===0,field:o,disableDeepLinks:!r},o.name))]})}const C=m(u);export{C as ResponseHeaders};
