import r, { isValidElement as p } from "react";
const u = (n) => r.Children.map(n, (e) => {
  if (p(e) && typeof e.type == "string" && e.type === "video") {
    const t = e.props, o = e;
    if (t.autoPlay)
      return r.cloneElement(o, {
        ...t,
        playsInline: !0,
        loop: !0,
        muted: !0
      });
  }
  return e;
});
export {
  u as enhanceVideoProps
};
