"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const RadixToast = require("@radix-ui/react-toast");
const classNames = require("../../utils/classNames.cjs");
require("../../utils/globals.cjs");
require("./toast.theme.css.cjs");
function _interopNamespaceDefault(e) {
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
  if (e) {
    for (const k in e) {
      if (k !== "default") {
        const d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: () => e[k]
        });
      }
    }
  }
  n.default = e;
  return Object.freeze(n);
}
const RadixToast__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixToast);
const Toast = ({ title, description, content, duration, position, closeButtonIcon, hideClose, className, testId, additionalProps = {} }) => {
  return jsxRuntime.jsxs(RadixToast__namespace.Root, { className: classNames.concat("arm-toast", className), duration, "data-position": position, "data-testid": testId, "aria-label": "Notification", ...additionalProps, children: [title && jsxRuntime.jsx(RadixToast__namespace.Title, { className: "arm-toast-title", children: title }), description && jsxRuntime.jsx(RadixToast__namespace.Description, { className: "arm-toast-description", children: description }), closeButtonIcon !== false && !hideClose && jsxRuntime.jsx(RadixToast__namespace.Close, { className: "arm-toast-close", "aria-label": "Close", children: closeButtonIcon }), content] });
};
Toast.displayName = "Toast";
exports.Toast = Toast;
//# sourceMappingURL=toast.component.cjs.map
