import{r as p}from"./index-NdkWRN8K.js";import{K as x}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{M as f}from"./Link-BDoLypER.js";import{M as u}from"./ScreenReaderText-CebALBsG.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{A as h,a as j}from"./AlertTitle-q6ff_Zkl.js";const T=["status","alert"],g=["success","info","warning","error"],M=({linkRel:t,linkTarget:n,linkText:o,linkUrl:a,onClose:i,role:m,severity:s,text:l,testId:c,translate:r})=>{const{t:d}=x();return e.jsxs(h,{"data-se":c,onClose:i,role:m,severity:s,variant:"banner",children:[e.jsx(u,{translate:r,children:d(`severity.${s}`)}),e.jsx(j,{translate:r,children:l}),a&&e.jsx(f,{href:a,rel:t,target:n,translate:r,variant:"monochrome",children:o})]})},b=p.memo(M);b.displayName="Banner";export{b as M,T as a,g as b};
