import { injectToastProviderContext } from "./ToastProvider.js"; //#region src/Toast/useToastManager.ts /** * Returns the toasts of the nearest `ToastProvider` and methods to manage them. */ function useToastManager() { const { toastStore } = injectToastProviderContext(); return { toasts: toastStore.toasts, add: toastStore.add, close: toastStore.close, update: toastStore.update, promise: toastStore.promise }; } //#endregion export { useToastManager }; //# sourceMappingURL=useToastManager.js.map