PromoCursed/node_modules/rc-menu/es/utils/motionUtil.js
2024-08-20 23:25:37 +04:00

9 lines
203 B
JavaScript

export function getMotion(mode, motion, defaultMotions) {
if (motion) {
return motion;
}
if (defaultMotions) {
return defaultMotions[mode] || defaultMotions.other;
}
return undefined;
}