import{O as e}from"./vendor-markdown-DngssFHR.js";import{c as t,l as n}from"./vendor-react-Cts2Wj-s.js";import{$ as r,Q as i,nt as a,pt as o}from"./vendor-mui-Ckcy4Lfd.js";import"./vendor-md-editor-DC6xr_29.js";import{ot as s,st as c}from"./vendor-mui-icons-606Bohdn.js";import{_ as l,i as u,n as d,p as f,v as p}from"./ui-BLXHSX1T.js";import{t as m}from"./help-DeFmOHyq.js";var h=e(),g={overview:`primary`,concept:`warning`,guide:`success`};function _(){let{projectId:e,articleId:_}=n(),v=t(),{palette:y}=o(),b=_?m(_):void 0;return b?(0,h.jsxs)(i,{children:[(0,h.jsx)(f,{breadcrumbs:[{label:`Help`,to:`/${e}/help`},{label:b.title}]}),(0,h.jsxs)(i,{sx:{display:`flex`,flexDirection:`column`,gap:2},children:[(0,h.jsxs)(i,{sx:{display:`flex`,alignItems:`center`,gap:1.5,mb:1},children:[(0,h.jsx)(l,{label:b.category===`overview`?`Overview`:b.category===`concept`?`Concept`:`Guide`,color:g[b.category]||`primary`}),(0,h.jsx)(a,{variant:`body2`,sx:{color:y.custom.textMuted},children:b.summary})]}),(0,h.jsx)(p,{title:`Article`,children:(0,h.jsx)(d,{children:b.content})}),b.relatedTools.length>0&&(0,h.jsx)(p,{title:`Related Tools`,children:(0,h.jsx)(i,{sx:{display:`flex`,flexWrap:`wrap`,gap:1},children:b.relatedTools.map(t=>(0,h.jsx)(r,{icon:(0,h.jsx)(c,{}),label:t,size:`small`,variant:`outlined`,clickable:!0,onClick:()=>v(`/${e}/tools/${t}`),sx:{fontFamily:`monospace`}},t))})})]})]}):(0,h.jsxs)(i,{children:[(0,h.jsx)(f,{breadcrumbs:[{label:`Help`,to:`/${e}/help`},{label:`Not Found`}]}),(0,h.jsx)(u,{icon:(0,h.jsx)(s,{}),title:`Article not found`})]})}export{_ as default};