Skip to content

An open source alternative to Tableau. Embeddable visual analytic

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

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

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