"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[6583],{96583:function(A,a,t){t.r(a),t.d(a,{CatalogEntityPage:function(){return v}});var r=t(2784),s=t(10289),o=t(17429),e=t(36964),g=t(77446);const m=()=>{const{kind:c,namespace:i,name:n}=(0,e.useRouteRefParams)(o.entityRouteRef),u=(0,s.s0)(),l=(0,e.useApi)(e.errorApiRef),d=(0,e.useApi)(o.catalogApiRef),{value:f,error:y,loading:p,retry:E}=(0,g.Z)(()=>d.getEntityByRef({kind:c,namespace:i,name:n}),[d,c,i,n]);return(0,r.useEffect)(()=>{n||(l.post(new Error("No name provided!")),u("/"))},[l,u,y,p,f,n]),{entity:f,loading:p,error:y,refresh:E}};function v(){return r.createElement(o.AsyncEntityProvider,{...m()},r.createElement(s.j3,null))}}}]);})();

//# sourceMappingURL=6583.492e5219.chunk.js.map