import{n as e}from"./preload-helper-EQ20WQt-.js";import{c as t,l as n}from"./prop-types-DdDwMzX7.js";import{ct as r,pt as i}from"./poll-DJul990I.js";import{d as a}from"./status_quoted-DSI-CjDl.js";var o=e(),s=t({dismiss:{id:`dismissable_banner.dismiss`,defaultMessage:`Dismiss`}}),c=({id:e,children:t})=>{let c=n(),{wasDismissed:l,dismiss:u}=a(e);return l?null:(0,o.jsxs)(`div`,{className:`dismissable-banner`,children:[(0,o.jsx)(`div`,{className:`dismissable-banner__action`,children:(0,o.jsx)(r,{icon:`times`,iconComponent:i,title:c.formatMessage(s.dismiss),onClick:u})}),(0,o.jsx)(`div`,{className:`dismissable-banner__message`,children:t})]})};export{c as t};
//# sourceMappingURL=dismissable_banner-DEmSKLFg.js.map