import "../../../rc-motion/es/CSSMotion.mjs";
import "../../../rc-motion/es/CSSMotionList.mjs";
import n from "../../../rc-motion/es/context.mjs";
import * as e from "react";
import "../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "../../../@ant-design/cssinjs/es/StyleContext.mjs";
import "../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../rc-util/es/warning.mjs";
import "../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import p from "../theme/useToken.mjs";
function x(i) {
  const {
    children: r
  } = i, [, m] = p(), {
    motion: t
  } = m, o = e.useRef(!1);
  return o.current = o.current || t === !1, o.current ? /* @__PURE__ */ e.createElement(n, {
    motion: t
  }, r) : r;
}
export {
  x as default
};
