"use client";
import * as React from "react";
import { subscribeNotificationEffects } from "./NotificationDispatcher.js";
function useNotificationEffect(notificationType, effect, deps = []) {
  React.useEffect(() => {
    const unsubscribe = subscribeNotificationEffects(notificationType, effect);
    return unsubscribe;
  }, [notificationType, ...deps]);
}
export {
  useNotificationEffect
};
//# sourceMappingURL=useNotificationEffect.js.map
