saleor-dashboard/src/hooks/useTheme.ts

9 lines
209 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import { ThemeContext } from "@saleor/components/Theme";
import { useContext } from "react";
2019-06-19 14:40:52 +00:00
function useTheme() {
const themeInfo = useContext(ThemeContext);
return themeInfo;
}
export default useTheme;