import { createPortal as e } from "react-dom";
import { resolveContainer as n } from "./get-container.mjs";
import { canUseDom as i } from "./can-use-dom.mjs";
function f(r, o) {
  if (i && r) {
    const t = n(r);
    return e(o, t);
  }
  return o;
}
export {
  f as renderToContainer
};
