"use strict";

exports.__esModule = true;
exports.default = void 0;

var _ramda = require("ramda");

var _ramdaExtension = require("ramda-extension");

/**
 * Returns the display name of a React component, falling back appropriately.
 *
 * @param {React.Component} Component React component to get the name of
 * @returns {string}
 */
var getEventHandlersFromProps = (0, _ramda.converge)(_ramda.pick, [(0, _ramda.o)((0, _ramda.filter)((0, _ramdaExtension.startsWithPrefix)('on')), _ramda.keys), (0, _ramda.filter)(_ramdaExtension.isFunction)]);
var _default = getEventHandlersFromProps;
exports.default = _default;