first commit
This commit is contained in:
12
node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs
generated
vendored
Normal file
12
node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { isMotionValue } from 'motion-dom';
|
||||
|
||||
/**
|
||||
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
||||
*
|
||||
* TODO: Remove and move to library
|
||||
*/
|
||||
function resolveMotionValue(value) {
|
||||
return isMotionValue(value) ? value.get() : value;
|
||||
}
|
||||
|
||||
export { resolveMotionValue };
|
||||
Reference in New Issue
Block a user