1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-19 18:01:37 +07:00
verdaccio-ui/src/design-tokens/ThemeContext.ts

11 lines
228 B
TypeScript
Raw Normal View History

2020-03-31 13:44:59 +07:00
import { createContext } from 'react';
interface Props {
isDarkMode: boolean;
setIsDarkMode: (isDarkMode: boolean) => void;
}
const ThemeContext = createContext<undefined | Props>(undefined);
export default ThemeContext;