UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.23 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./sections/WhatDoYouNeed/WhatDoYouNeed.css');const e=require("./index.cjs244.js");;/* empty css */const l=require("./index.cjs246.js"),r=require("./index.cjs54.js"),d=require("./index.cjs10.js"),j=require("./index.cjs28.js"),h=({title:o,description:s,links:t,asLink:u="a",showBlueBackground:c=!1})=>e.jsxRuntimeExports.jsxs(r.Section,{className:`base-col ui-what-do-you-need-section ${c?"blue-background":""}`,children:[e.jsxRuntimeExports.jsxs(d.Col,{className:"ui-what-do-you-need-content",children:[e.jsxRuntimeExports.jsx(r.Section.Title,{fs:"2",children:o}),s&&e.jsxRuntimeExports.jsx(r.Section.Description,{children:s})]}),e.jsxRuntimeExports.jsx("ul",{role:"list","aria-label":`Lista di ${o}`,className:l.clsx("list-style-none ui-what-do-you-need-links",t.length<4?"row":"grid"),children:t==null?void 0:t.map(({link:n,title:a,isNewTab:i},x)=>e.jsxRuntimeExports.jsx("li",{children:e.jsxRuntimeExports.jsx(j.Button,{asLink:u,href:n,size:"2",variant:x>0?"secondary":"primary",target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,children:a})},n))})]});exports.WhatDoYouNeed=h; //# sourceMappingURL=index.cjs140.js.map