import { Toast } from "@base-ui/react/toast";

/** A toast manager created outside React so non-React code (the QueryClient
 *  MutationCache) can add toasts. Passed to <Toast.Provider toastManager=…>.
 *
 *  Note: in @base-ui/react ^1.5 `createToastManager` is only exported through
 *  the `Toast` namespace (index.parts), not as a top-level named export of the
 *  `@base-ui/react/toast` subpath — importing it directly fails at runtime. */
export const toastManager = Toast.createToastManager();
