import { useContext as e } from "react";
import { useStore as n } from "zustand";
import { shallow as m } from "zustand/shallow";
import { DynamicSortContext as i } from "./DynamicSortContext.js";
function f(t, r) {
  const o = e(i);
  if (!o)
    throw new Error("useDynamicSortStore context must be use inside DynamicSortContext");
  return n(o, t, r ?? m);
}
export {
  f as useDynamicSortStore
};
