"use client";
import { createContext, useContext } from "react";
const context = createContext(null);
context.displayName = "CurrentToastActions";
/**
 * @since 6.0.0
 * @internal
 */ export const { Provider: CurrentToastActionsProvider } = context;
/**
 * This is only required if you have multiple `Snackbar` implementations in your
 * app.
 *
 * @since 6.0.0
 */ export function useCurrentToastActions() {
    const actions = useContext(context);
    if (!actions) {
        throw new Error("The `CurrentToastActionsProvider` has not been initialized");
    }
    return actions;
}

//# sourceMappingURL=useCurrentToastActions.js.map