import { createElement } from "react";
/* empty css                  */
import Snackbar from "../../node_modules/@mui/material/Snackbar/Snackbar.js";
function Toast({
  isOpen = true,
  position = "top-right",
  message = "This is a toast",
  variant = "success",
  onClose,
  autoHideDuration = 5e3,
  className,
  "data-testid": dataTestId,
  ...args
}) {
  const [vertical, horizontal] = position.split("-");
  return /* @__PURE__ */ createElement(
    Snackbar,
    {
      ...args,
      key: `${vertical}-${horizontal}`,
      anchorOrigin: { vertical, horizontal },
      autoHideDuration: autoHideDuration ?? void 0,
      className: `ia-styles ia-snackbar ia-snackbar-${variant} ${className ?? ""}`.trim(),
      "data-testid": dataTestId,
      message,
      open: isOpen,
      onClose
    }
  );
}
Toast.displayName = "Toast";
export {
  Toast
};
