kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
30 lines (29 loc) • 4.66 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ProviderSelect = void 0;
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
var _cloudTile = _interopRequireDefault(require("../cloud-tile"));
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _constants = require("@kepler.gl/constants");
var _templateObject; // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var StyledProviderSection = _styledComponents["default"].div.attrs({
className: 'provider-selection'
})(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n gap: 8px;\n"])));
var ProviderSelect = exports.ProviderSelect = function ProviderSelect(_ref) {
var _ref$cloudProviders = _ref.cloudProviders,
cloudProviders = _ref$cloudProviders === void 0 ? [] : _ref$cloudProviders;
return /*#__PURE__*/_react["default"].createElement("div", {
"data-testid": _constants.dataTestIds.providerSelect
}, cloudProviders.length ? /*#__PURE__*/_react["default"].createElement(StyledProviderSection, null, cloudProviders.map(function (provider) {
return /*#__PURE__*/_react["default"].createElement(_cloudTile["default"], {
key: provider.name,
provider: provider
});
})) : /*#__PURE__*/_react["default"].createElement("p", null, "No storage provider available"));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfY2xvdWRUaWxlIiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfcmVhY3QiLCJfc3R5bGVkQ29tcG9uZW50cyIsIl9jb25zdGFudHMiLCJfdGVtcGxhdGVPYmplY3QiLCJTdHlsZWRQcm92aWRlclNlY3Rpb24iLCJzdHlsZWQiLCJkaXYiLCJhdHRycyIsImNsYXNzTmFtZSIsIl90YWdnZWRUZW1wbGF0ZUxpdGVyYWw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