import { jsx as t } from "react/jsx-runtime";
import { useEffect as c } from "react";
const s = (e, r) => {
  process.env.NODE_ENV !== "production" && typeof console?.warn == "function" && console.warn(r ? `DEPRECATED: ${e} is deprecated, use ${r} instead.` : `DEPRECATED: ${e} is deprecated.`);
}, E = (e, { name: r, alternative: o }) => function(n) {
  return c(() => {
    s(r, o);
  }, []), /* @__PURE__ */ t(e, { ...n });
};
export {
  s as warn,
  E as withDeprecated
};
