"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792,2426],{38792:function(y,a,n){n.r(a),n.d(a,{HasSubcomponentsCard:function(){return o}});var i=n(48023),t=n(2784),e=n(62426);function o(r){const{variant:c="gridItem"}=r;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:"Has subcomponents",entityKind:"Component",relationType:i.aS,columns:e.componentEntityColumns,asRenderableEntities:e.asComponentEntities,emptyMessage:"No subcomponent is part of this component",emptyHelpLink:"https://backstage.io/docs/features/software-catalog/descriptor-format#specsubcomponentof-optional"})}},62426:function(y,a,n){n.r(a),n.d(a,{RelatedEntitiesCard:function(){return r},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return g},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return d},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return b},systemEntityHelpLink:function(){return T}});var i=n(90436),t=n(17429),e=n(2784),o=n(82339);function r(s){const{variant:l="gridItem",title:u,columns:v,entityKind:h,relationType:R,emptyMessage:k,emptyHelpLink:L,asRenderableEntities:H}=s,{entity:S}=(0,t.useEntity)(),{entities:K,loading:M,error:m}=(0,t.useRelatedEntities)(S,{type:R,kind:h});return M?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.Progress,null)):m?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.ResponseErrorPanel,{error:m})):e.createElement(t.EntityTable,{title:u,variant:l,emptyContent:e.createElement("div",{style:{textAlign:"center"}},e.createElement(i.Z,{variant:"body1"},k),e.createElement(i.Z,{variant:"body2"},e.createElement(o.Link,{to:L},"Learn how to change this."))),columns:v,entities:H(K||[])})}const c=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"component"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],d="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",E=s=>s,p=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"resource"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",C=s=>s,b=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"system"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],T="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",g=s=>s}}]);})();

//# sourceMappingURL=8792.264e5e68.chunk.js.map