"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/jsx-runtime.js"),r=require("./styles.js"),d=require("../../../utils/index.js"),l=require("../../Button/index.js"),p=require("./utils.js"),c=require("./ToastIcon.js");function j({className:o,message:u,variant:t="neutral",icon:i,primaryAction:a,...s}){const n=d.getId(s["data-testid"]),x=d.getId(s["data-trackid"]);return e.jsxRuntimeExports.jsx(r.ToastCompactWrapper,{className:o,variant:t,"data-testid":n("wrapper"),"data-trackid":x("wrapper"),"aria-label":s["aria-label"],role:p.getAriaRole(t),children:e.jsxRuntimeExports.jsxs(r.CompactWrapper,{children:[t==="neutral"&&i?i:e.jsxRuntimeExports.jsx(c.default,{variant:t}),e.jsxRuntimeExports.jsx(r.MessageWrapper,{children:u}),a&&e.jsxRuntimeExports.jsx(r.CompactActionWrapper,{children:e.jsxRuntimeExports.jsx(l.Button,{size:"xSmall",variant:"inverse-ghost",onClick:a.onClick,"data-testid":n("action-button"),children:a.text})})]})})}exports.ToastCompact=j;
