import { jsx as d } from "react/jsx-runtime";
import { createContext as f, useState as t, use as x } from "react";
const e = f({}), { Provider: C } = e;
function P({ children: o }) {
  const [s, n] = t([]), [a, r] = t([]), [u, l] = t(!1), [c, i] = t(!1), [m, b] = t("Filter");
  return /* @__PURE__ */ d(C, { value: {
    customButtons: s,
    setCustomButtons: n,
    customPreButtons: a,
    setCustomPreButtons: r,
    filterLabel: m,
    setFilterLabel: b,
    loading: u,
    setLoading: l,
    disabled: c,
    setDisabled: i
  }, children: o });
}
function p() {
  return x(e);
}
export {
  P as DatatableProvider,
  p as useDatatableContext
};
