/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
import { useToastConfig } from "./UDSToastConfigProvider.js";
import { getToastClassName } from "./ToastContainer.js";
import { POSTION_MAP } from "./createToast.js";
import { jsx } from "react/jsx-runtime";
import { Slide, ToastContainer } from "react-toastify";
//#region src/components/client/Toast/ToastPortal.tsx
const ToastPortal = ({ toastClassName, ...props }) => {
	const { autoClose, position } = useToastConfig();
	const mappedPosition = POSTION_MAP[position];
	return /* @__PURE__ */ jsx(ToastContainer, {
		toastClassName: getToastClassName(toastClassName),
		hideProgressBar: true,
		transition: Slide,
		closeButton: false,
		icon: false,
		autoClose,
		position: mappedPosition,
		...props
	});
};
ToastPortal.displayName = "ToastPortal";
//#endregion
export { ToastPortal, getToastClassName };
