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