1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow
    
  8.  */
    
  9. 
    
  10. import {createContext, useContext, useDebugValue} from 'react';
    
  11. 
    
  12. export const ThemeContext = createContext('bright');
    
  13. 
    
  14. export default function useTheme() {
    
  15.   const theme = useContext(ThemeContext);
    
  16.   useDebugValue(theme);
    
  17.   return theme;
    
  18. }