import{l as m,u as p,j as e,B as x,T as t,L as d}from"./index-6fe66247.js";import{P as u}from"./PageMetaData-4821a42d.js";import{B as h}from"./Breadcrumbs-52f929ae.js";import{L as g}from"./Link-de7e0135.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};
