Skip to content

An open source alternative to Tableau. Embeddable visual analytic

267 B
Raw Blame
import { createContext, useContext } from 'react';

export const themeContext = createContext<{
    theme: 'light' | 'dark';
    toggleTheme: () => void;
}>({
    theme: 'light',
    toggleTheme: () => {},
});

export const useTheme = () => useContext(themeContext);