import{l as m,u as p,j as e,B as x,T as t,L as d}from"./index-c1429e77.js";import{P as u}from"./PageMetaData-779a2dc1.js";import{B as h}from"./Breadcrumbs-24e40a14.js";import{L as g}from"./Link-a63687a8.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};
