// src/events/helpers.ts
import { useNovaEventing } from "@nova/react";
import { useCallback } from "react";
import { events } from "./events.mjs";
var useOnDeleteFeedback = (feedbackId, feedbackText) => {
  const eventing = useNovaEventing();
  return useCallback(
    (reactEvent) => {
      const event = events.onDeleteFeedback({ feedbackId, feedbackText });
      void eventing.bubble({ event, reactEvent });
    },
    [eventing, feedbackId, feedbackText]
  );
};
var useFeedbackTelemetry = () => {
  const eventing = useNovaEventing();
  return useCallback(
    (operation) => {
      const event = events.feedbackTelemetry({ operation });
      void eventing.generateEvent({ event });
    },
    [eventing]
  );
};
export {
  useFeedbackTelemetry,
  useOnDeleteFeedback
};
