Blame view

天文台pc/tianwentai-ui/node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs 653 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use client";
  import { jsx } from 'react/jsx-runtime';
  import { invariant } from 'motion-utils';
  import * as React from 'react';
  import { useConstant } from '../utils/use-constant.mjs';
  import { LayoutGroup } from './LayoutGroup/index.mjs';
  
  let id = 0;
  const AnimateSharedLayout = ({ children }) => {
      React.useEffect(() => {
          invariant(false, "AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations");
      }, []);
      return (jsx(LayoutGroup, { id: useConstant(() => `asl-${id++}`), children: children }));
  };
  
  export { AnimateSharedLayout };
  //# sourceMappingURL=AnimateSharedLayout.mjs.map