UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

15 lines 478 B
import { useContext } from "react"; import { CompThemeContext, ThemeContext } from "./context"; export const useTheme = () => { const theme = useContext(ThemeContext); return theme.mode === "dark" ? theme.dark : theme.light; }; export const useThemeInternal = () => { const theme = useContext(ThemeContext); return theme; }; export const useCompTheme = () => { const theme = useContext(CompThemeContext); return theme; }; //# sourceMappingURL=hook.js.map