import{defineProperty as t}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import e from"react";import o from"classnames";import n from"../../../../Text/Text.js";import{Flex as s}from"@vibe/layout/mockedClassNames";import i from"../../components/AttentionBoxButton/AttentionBoxButton.js";import a from"../../components/AttentionBoxLink/AttentionBoxLink.js";import m from"../../components/AttentionBoxCloseButton/AttentionBoxCloseButton.js";import l from"../../components/AttentionBoxLeadingIcon/AttentionBoxLeadingIcon.js";import r from"./AttentionBoxDefault.module.scss.js";var c=function(c){var p=c.title,u=c.icon,B=c.iconType,x=c.onClose,f=c.closeButtonAriaLabel,A=void 0===f?"Close":f,d=c.action,j=c.link,g=c.content,E=d||j;return e.createElement("div",{className:o(r.container,t(t(t(t({},r.hasIcon,!!u),r.hasTitle,!!p),r.hasActions,E),r.hasCloseButton,!!x))},u&&e.createElement(l,{icon:u,iconType:B,className:r.icon}),p&&e.createElement(n,{type:"text1",weight:"medium",className:r.title},p),!!x&&e.createElement(m,{onClose:x,closeButtonAriaLabel:A,className:r.closeButton}),e.createElement(n,{type:"text2",className:r.text,ellipsis:!1,element:"string"==typeof g?"p":void 0},g),E&&e.createElement(s,{gap:"medium",className:r.actions},j&&e.createElement(a,Object.assign({},j,{inlineText:!1})),d&&e.createElement(i,Object.assign({},d))))};export{c as default};
//# sourceMappingURL=AttentionBoxDefault.js.map
