sriracha-ui
Version:
A react style library build with styled-components, and material ui theme.
14 lines (10 loc) • 412 B
JavaScript
import { useContext } from "react";
import { ThemeModeContext } from "../components/ColorModeContainer/ThemeModeContext";
export const useTheme = () => {
// const { theme } = useContext(ThemeModeContext);
// return { theme };
const { toggleTheme, theme, themeString, lightTheme, darkTheme } = useContext(
ThemeModeContext
);
return { toggleTheme, theme, themeString, lightTheme, darkTheme };
};