text: /*
  Copyright (c) 2018 Uber Technologies, Inc.
  
  This source code is licensed under the MIT license found in the
  LICENSE file in the root directory of this source tree.
  */
  // @flow
  import * as React from 'react';
  import {LightTheme} from '../themes';
  
  import type {ThemeT} from './types';
  
  export const ThemeContext: React.Context<ThemeT> = React.createContext(
    LightTheme,
  );
  
  const ThemeProvider = (props: {theme: ThemeT, children: ?React.Node}) => {
    const {theme, children} = props;
    return (
      <ThemeContext.Provider value={theme}>{children}</ThemeContext.Provider>
    );
  };
  
  export default ThemeProvider;
  