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