dashboard/frontend/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs

13 lines
324 B
JavaScript
Raw Normal View History

2025-12-16 08:16:27 +09:00
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 };