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