"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.pickDataProps = void 0;
var pickDataProps = function pickDataProps() {
  var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return Object.keys(props).reduce(function (buf, key) {
    if (key.includes('data-')) {
      buf[key] = props[key];
    }
    return buf;
  }, {});
};
exports.pickDataProps = pickDataProps;