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.

15 lines (13 loc) 434 B
import React from "react"; import { ThemeProvider as StyledThemeProvider } from "styled-components"; import Dictionary from "../Dictionary"; const ThemeProvider = ({ theme, dictionary, children }) => React.createElement(StyledThemeProvider, { theme: theme }, dictionary ? React.createElement(Dictionary, { values: dictionary }, React.Children.only(children)) : React.Children.only(children)); export default ThemeProvider;