@cometchat/chat-uikit-react
Version:
Ready-to-use Chat UI Components for React
16 lines (13 loc) • 371 B
JavaScript
import './index.css';
import { createContext, useContext } from 'react';
var defaultValue = {
theme: "light",
setTheme: () => {
}
};
var CometChatThemeContext = createContext(defaultValue);
CometChatThemeContext.displayName = "CometChatThemeContext";
function useTheme() {
return useContext(CometChatThemeContext);
}
export { CometChatThemeContext, useTheme };