{"size": 310, "ext": "js", "max_stars_repo_path": "node_modules/rc-menu/lib/utils/motionUtil.js", "max_stars_repo_name": "kushdave1/NiftyEthMetamask", "max_stars_repo_stars_event_min_datetime": "2022-03-28T18:24:46.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T18:24:46.000Z", "max_issues_repo_path": "node_modules/rc-menu/lib/utils/motionUtil.js", "max_issues_repo_name": "kushdave1/NiftyEthMetamask", "max_issues_repo_issues_event_min_datetime": "2021-08-24T05:13:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-24T05:13:20.000Z", "max_forks_repo_path": "node_modules/rc-menu/lib/utils/motionUtil.js", "max_forks_repo_name": "kushdave1/NiftyEthMetamask", "max_forks_repo_forks_event_min_datetime": "2021-08-28T14:22:36.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-06T18:59:41.000Z"}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 17.2222222222, "max_line_length": 56, "alphanum_fraction": 0.6935483871}
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getMotion = getMotion;

function getMotion(mode, motion, defaultMotions) {
  if (motion) {
    return motion;
  }

  if (defaultMotions) {
    return defaultMotions[mode] || defaultMotions.other;
  }

  return undefined;
}