import { useEditorRef as r } from "@udecode/plate-core";
import { insertNodes as n } from "@udecode/slate";
import { useEffect as f } from "react";
const i = ({ children: o, apply: t }) => {
  for (const e of o)
    t({ type: "remove_node", path: [0], node: e });
}, p = ({ value: o }) => {
  const t = r();
  return f(() => {
    o && (i(t), n(t, o));
  }, [t, o]), null;
};
export {
  p as ContentReplacement
};
//# sourceMappingURL=ContentReplacement.es.js.map
