Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

438 B
Raw Blame
import { createContext } from 'react';
import { emptyFn } from '@/lib/utils';
import type { Theme, EffectiveTheme } from '@/lib/types';
export type { Theme, EffectiveTheme };

export interface ThemeContext {
    theme: Theme;
    setTheme: (theme: Theme) => void;
    effectiveTheme: EffectiveTheme;
}

export const ThemeContext = createContext<ThemeContext>({
    theme: 'system',
    setTheme: emptyFn,
    effectiveTheme: 'light',
});