import { useMemo } from 'react';
import useConfig from './useConfig';
export const useUiKitConfig = ({
  keys,
  ...rest
}) => {
  const {
    getUiKitConfig
  } = useConfig();
  const config = useMemo(() => {
    return keys.map(key => {
      var _getUiKitConfig;
      return (_getUiKitConfig = getUiKitConfig(rest)) === null || _getUiKitConfig === void 0 ? void 0 : _getUiKitConfig[key];
    });
  }, [getUiKitConfig, keys, rest]);
  return config;
};
//# sourceMappingURL=useUiKitConfig.js.map