"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[3555],{73555:function(N,r,t){t.r(r),t.d(r,{EntityLinksCard:function(){return k}});var m=t(17429),i=t(52160),n=t(2784),u=t(79692),h=t(90436),p=t(77277),l=t(82339);const g=`metadata:
  name: example
  links:
    - url: https://dashboard.example.com
      title: My Dashboard
      icon: dashboard`,f=(0,u.Z)(e=>({code:{borderRadius:6,margin:`${e.spacing(2)}px 0px`,background:e.palette.type==="dark"?"#444":"#fff"}}),{name:"PluginCatalogEntityLinksEmptyState"});function y(){const e=f();return n.createElement(n.Fragment,null,n.createElement(h.Z,{variant:"body1"},"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:"),n.createElement("div",{className:e.code},n.createElement(l.CodeSnippet,{text:g,language:"yaml",showLineNumbers:!0,highlightedNumbers:[3,4,5,6],customStyle:{background:"inherit",fontSize:"115%"}})),n.createElement(p.Z,{variant:"contained",color:"primary",target:"_blank",href:"https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional"},"Read more"))}var E=t(45915),v=t(36964);function k(e){var d;const{cols:L=void 0,variant:S}=e,{entity:o}=(0,m.useEntity)(),C=(0,v.useApp)(),b=s=>{var a;return s&&(a=C.getSystemIcon(s))!=null?a:i.Z},c=(d=o==null?void 0:o.metadata)==null?void 0:d.links;return n.createElement(l.InfoCard,{title:"Links",variant:S},!c||c.length===0?n.createElement(y,null):n.createElement(E.s,{cols:L,items:c.map(({url:s,title:a,icon:x})=>({text:a!=null?a:s,href:s,Icon:b(x)}))}))}}}]);})();

//# sourceMappingURL=3555.f3a9371e.chunk.js.map