securityos/node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs

15 lines
562 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { invariant } from '../utils/errors.mjs';
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 (React.createElement(LayoutGroup, { id: useConstant(() => `asl-${id++}`) }, children));
};
export { AnimateSharedLayout };