function i(r, e) {
  switch (e.type) {
    case "navigate":
      return {
        currentStep: e.step,
        history: [...r.history, r.currentStep]
      };
    case "back":
      return r.history.length === 0 ? r : {
        currentStep: r.history[r.history.length - 1],
        history: r.history.slice(0, -1)
      };
    default:
      return r;
  }
}
export {
  i as default
};
//# sourceMappingURL=navigationReducer.js.map
