"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useUiKitConfig = void 0;
var _react = require("react");
var _useConfig = _interopRequireDefault(require("./useConfig"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const useUiKitConfig = ({
  keys,
  ...rest
}) => {
  const {
    getUiKitConfig
  } = (0, _useConfig.default)();
  const config = (0, _react.useMemo)(() => {
    return keys.map(key => {
      var _getUiKitConfig;
      return (_getUiKitConfig = getUiKitConfig(rest)) === null || _getUiKitConfig === void 0 ? void 0 : _getUiKitConfig[key];
    });
  }, [getUiKitConfig, keys, rest]);
  return config;
};
exports.useUiKitConfig = useUiKitConfig;
//# sourceMappingURL=useUiKitConfig.js.map