declare let window: any;

export const identify = (userAddress: string) => {
  if (window?.Appcues) {
    window.Appcues.identify(userAddress);
  }
};

export const track = (eventType: string) => {
  if (window?.Appcues) {
    window.Appcues.track(eventType);
  }
};

export const page = () => {
  if (window?.Appcues) {
    window.Appcues.page();
  }
};
