import { useContext as o } from "react";
import { useStore as p } from "zustand";
import { shallow as n } from "zustand/shallow";
import { StepperContext as s } from "../../store/StepperContext/index.js";
function x(t, r) {
  const e = o(s);
  if (!e)
    throw new Error("useStepper context must be use inside StepperContext");
  return p(e, t, r ?? n);
}
export {
  x as useStepper
};
