import { updateBAEventParameters } from "@elliemae/pui-analytics-so";
import { sendBAEvent } from "./index.js";
const loginEvent = ({
  instanceId,
  userId
}) => {
  updateBAEventParameters({ instanceId, userId });
  sendBAEvent({
    data: {
      event: "login"
    }
  });
};
const logoutEvent = () => {
  sendBAEvent({
    data: {
      event: "logout"
    }
  });
  updateBAEventParameters({ instanceId: "", userId: "" });
};
export {
  loginEvent,
  logoutEvent
};
