"use client";
const require_use_toast_context = require("./use-toast-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/toast/toast-root.tsx
var ToastRoot = (0, react.forwardRef)((props, ref) => {
	const toast = require_use_toast_context.useToastContext();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
		...(0, _zag_js_react.mergeProps)(toast.getRootProps(), props),
		ref,
		children: [
			/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { ...toast.getGhostBeforeProps() }),
			props.children,
			/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { ...toast.getGhostAfterProps() })
		]
	});
});
ToastRoot.displayName = "ToastRoot";
//#endregion
exports.ToastRoot = ToastRoot;
