import * as o from "react";
import { devUseWarning as s } from "../_util/warning.mjs";
import { changeConfirmLocale as l } from "../modal/locale.mjs";
import d from "./context.mjs";
const p = "internalMark", t = (a) => {
  const {
    locale: e = {},
    children: c,
    _ANT_MARK__: n
  } = a;
  if (process.env.NODE_ENV !== "production") {
    const r = s("LocaleProvider");
    process.env.NODE_ENV !== "production" && r(n === p, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
  }
  o.useEffect(() => l(e && e.Modal), [e]);
  const i = o.useMemo(() => Object.assign(Object.assign({}, e), {
    exist: !0
  }), [e]);
  return /* @__PURE__ */ o.createElement(d.Provider, {
    value: i
  }, c);
};
process.env.NODE_ENV !== "production" && (t.displayName = "LocaleProvider");
const f = t;
export {
  p as ANT_MARK,
  f as default
};
