UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

28 lines (21 loc) 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _styledComponents = require("styled-components"); var _Dictionary = _interopRequireDefault(require("../Dictionary")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var ThemeProvider = function ThemeProvider(_ref) { var theme = _ref.theme, dictionary = _ref.dictionary, children = _ref.children; return _react.default.createElement(_styledComponents.ThemeProvider, { theme: theme }, dictionary ? _react.default.createElement(_Dictionary.default, { values: dictionary }, _react.default.Children.only(children)) : _react.default.Children.only(children)); }; var _default = ThemeProvider; exports.default = _default;