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

//# sourceMappingURL=7750.7580380d.chunk.js.map