mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 12:38:27 -04:00
6 lines
245 B
TypeScript
6 lines
245 B
TypeScript
import { useContext } from "react";
|
|
import { ThemeContext } from "../contexts/ThemeContext";
|
|
|
|
// convenience hook to get access to ThemeContext's state/functions from pages/components/etc.
|
|
export const useTheme = () => useContext(ThemeContext);
|