import t from"react";import e from"../../../../Text/Text.js";import o from"../../components/AttentionBoxButton/AttentionBoxButton.js";import n from"../../components/AttentionBoxLink/AttentionBoxLink.js";import i from"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton.js";import s from"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js";import a from"./AttentionBoxCompact.module.scss.js";import c from"../../../../../../components/layout/dist/Flex/Flex.js";var m=function(m){var r=m.icon,l=m.onClose,p=m.closeButtonAriaLabel,x=void 0===p?"Close":p,B=m.action,u=m.link,f=m.content,A=!(!B&&!u);return t.createElement(c,{align:"center",className:a.container},t.createElement(c,{gap:"xs",flex:"1",className:a.mainContentGroup},r&&t.createElement(s,{icon:r,iconType:m.iconType,className:a.leadingIcon}),t.createElement(e,{type:"text2",element:"string"==typeof f?"p":void 0,ellipsis:!0},f)),(A||!!l)&&t.createElement(c,{className:a.actionsGroup},u&&t.createElement(n,Object.assign({},u,{inlineText:!1})),B&&t.createElement(o,Object.assign({},B)),!!l&&t.createElement(i,{onClose:l,closeButtonAriaLabel:x})))};export{m as default};
//# sourceMappingURL=AttentionBoxCompact.js.map
