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