import{l as m,u as p,j as e,B as x,T as t,L as d}from"./index-7d3dbb9c.js";import{P as u}from"./PageMetaData-69209ade.js";import{B as h}from"./Breadcrumbs-f8a93219.js";import{L as g}from"./Link-19ee87c9.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};
