UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

16 lines (13 loc) 590 B
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 };