"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["8125"],{27516(e,t,a){a.d(t,{EntityLinksCard:()=>y});var i=a(31085),n=a(22845),r=a(25390),s=a(23127),d=a(64947),l=a(72501),o=a(58837),c=a(4809),m=a(89595),h=a(50010);let p=`metadata:
  name: example
  links:
    - url: https://dashboard.example.com
      title: My Dashboard
      icon: dashboard`,u=(0,o.A)(e=>({code:{borderRadius:6,margin:e.spacing(2,0),background:"dark"===e.palette.type?"#444":e.palette.common.white}}),{name:"PluginCatalogEntityLinksEmptyState"});function k(){let e=u(),{t}=(0,m.i)(h.W);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{variant:"body1",children:t("entityLinksCard.emptyDescription")}),(0,i.jsx)("div",{className:e.code,children:(0,i.jsx)(c.z,{text:p,language:"yaml",showLineNumbers:!0,highlightedNumbers:[3,4,5,6],customStyle:{background:"inherit",fontSize:"115%"}})}),(0,i.jsx)(d.A,{variant:"contained",color:"primary",target:"_blank",href:"https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional",children:t("entityLinksCard.readMoreButtonTitle")})]})}var g=a(75836),b=a(91189);let y=e=>{let{cols:t}=e,{entity:a}=(0,n.tN)(),d=(0,b.n)(),{t:l}=(0,m.i)(h.W),o=a?.metadata?.links;return(0,i.jsx)(r.o,{title:l("entityLinksCard.title"),children:o&&0!==o.length?(0,i.jsx)(g.m,{cols:t,items:o.map(({url:e,title:t,icon:a})=>({text:t??e,href:e,Icon:a?d.getSystemIcon(a)??s.default:s.default}))}):(0,i.jsx)(k,{})})}}}]);
//# sourceMappingURL=8125.350b517e.chunk.js.map