"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useGotoPostAuthScreens = void 0;
var _react = require("react");
var _core = require("@react-navigation/core");
var _store = require("../contexts/store");
const useGotoPostAuthScreens = () => {
  const [store] = (0, _store.useStore)();
  const navigation = (0, _core.useNavigation)();
  return (0, _react.useCallback)(() => {
    if (store.onboarding.postAuthScreens.length) {
      const screen = store.onboarding.postAuthScreens[0];
      if (screen) {
        navigation.navigate(screen);
      }
    }
  }, [store.onboarding.postAuthScreens, navigation]);
};
exports.useGotoPostAuthScreens = useGotoPostAuthScreens;
//# sourceMappingURL=onboarding.js.map