import{j as i}from"./iframe-p4aYZyoq.js";import{c as p}from"./index-Dx18ixSn.js";import{D as h}from"./decorated-list-item-CjpkmQyU.js";const b=({infoData:e,columns:l,isCompact:s,highlightFirstItem:r,noTitles:a,className:c,...m})=>!(e!=null&&e.length)||e.every(t=>!t.content)?null:i.jsx("ul",{className:p(c,"info-list",{"info-list--columns":l}),...m,children:e.map(({content:t,title:n,key:d,link:u},o)=>t&&i.jsx("li",{children:i.jsx(h,{title:n,highlight:o===0&&r,compact:s,hideTitle:a,link:u,children:t})},d||(typeof n=="string"?n:o)))});try{infolist.displayName="infolist",infolist.__docgenInfo={description:"",displayName:"infolist",props:{infoData:{defaultValue:null,description:"An array of objects each containing 'title' and 'content'",name:"infoData",required:!1,type:{name:"InfoListItem[]"}},columns:{defaultValue:null,description:`A boolean indicating whether the component should span multiple
columns on medium to large screens or not.`,name:"columns",required:!1,type:{name:"boolean"}},isCompact:{defaultValue:null,description:`A boolean indicating whether the component should render
as a compact list`,name:"isCompact",required:!1,type:{name:"boolean"}},highlightFirstItem:{defaultValue:null,description:"Should the first content item in the InfoList be bold",name:"highlightFirstItem",required:!1,type:{name:"boolean"}},noTitles:{defaultValue:null,description:"Display titles or not",name:"noTitles",required:!1,type:{name:"boolean"}}}}}catch{}export{b as I};
