Blame view

天文台pc/tianwentai-ui/node_modules/framer-motion/dist/es/motion/utils/unwrap-motion-component.mjs 578 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  import { isMotionComponent } from './is-motion-component.mjs';
  import { motionComponentSymbol } from './symbol.mjs';
  
  /**
   * Unwraps a `motion` component and returns either a string for `motion.div` or
   * the React component for `motion(Component)`.
   *
   * If the component is not a `motion` component it returns undefined.
   */
  function unwrapMotionComponent(component) {
      if (isMotionComponent(component)) {
          return component[motionComponentSymbol];
      }
      return undefined;
  }
  
  export { unwrapMotionComponent };
  //# sourceMappingURL=unwrap-motion-component.mjs.map