import{b6 as d,b as m,c as p,b7 as y,b8 as c,j as e,a4 as g}from"./index-CfKY7XrC.js";import{E as u}from"./entity-type-page-DSO6sJmr.js";function T(){const{owner:n,slug:t}=d.useParams(),{orgContext:s}=m(),o=p(),{data:i=[],isLoading:l}=y(s),a=i.find(x=>x.slug===t)??null,r=c.has(t);return e.jsx("div",{className:"flex flex-1 flex-col gap-4 px-4 py-6 lg:px-6",children:e.jsx("div",{className:"max-w-3xl",children:l?e.jsx(g,{label:"entity type",variant:"panel"}):a?e.jsx(u,{entityType:a,orgContext:s,hideDelete:r,onClose:()=>{o({to:"/$owner/memory",params:{owner:n}})}}):e.jsx("div",{className:"text-sm text-muted-foreground",children:"Entity type not found."})})})}export{T as component};
