import{l as m,u as p,j as e,B as x,T as t,L as d}from"./index-7414fd54.js";import{P as u}from"./PageMetaData-872a9787.js";import{B as h}from"./Breadcrumbs-3a0efba6.js";import{L as g}from"./Link-152aa696.js";const v=({title:r,subName:n,path:a})=>{const o=m(),i=p(),c=()=>{if(a)return a;const s=i.pathname.split("/").filter(Boolean);return s.length>1?`/${s.slice(0,-1).join("/")}`:"/"},l=[e.jsx(g,{color:"inherit",variant:"body2",underline:"none",onClick:()=>o(c()),style:{cursor:"pointer"},children:n},"2"),e.jsx(t,{variant:"body2",children:r},"3")];return e.jsxs(e.Fragment,{children:[e.jsx(u,{title:r}),e.jsxs(x,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(t,{variant:"h5",color:"text.primary",children:r}),e.jsx(h,{separator:e.jsx(d,{size:12}),"aria-label":"breadcrumb",sx:{"& ol":{display:"flex",gap:1}},children:l})]})]})};export{v as P};
