Mission Control Dashboard - Initial implementation
This commit is contained in:
15
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs
generated
vendored
Normal file
15
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useCallback } from 'react';
|
||||
import { rootProjectionNode } from 'motion-dom';
|
||||
|
||||
function useResetProjection() {
|
||||
const reset = useCallback(() => {
|
||||
const root = rootProjectionNode.current;
|
||||
if (!root)
|
||||
return;
|
||||
root.resetTree();
|
||||
}, []);
|
||||
return reset;
|
||||
}
|
||||
|
||||
export { useResetProjection };
|
||||
//# sourceMappingURL=use-reset-projection.mjs.map
|
||||
Reference in New Issue
Block a user