import n from "./index-extends.js";
const p = "exact-prop: ​";
function u(e) {
  return process.env.NODE_ENV === "production" ? e : n({}, e, {
    [p]: (o) => {
      const t = Object.keys(o).filter((r) => !e.hasOwnProperty(r));
      return t.length > 0 ? new Error(`The following props are not supported: ${t.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
    }
  });
}
export {
  u as default
};
