Summarization
BERTopic
Russian
English
first-start / src /app /providers /ThemeProviders /lib /ThemeContext.ts
Артем Леванов
first commit
41a71fd
Raw History Blame Contribute Delete
321 Bytes
import { createContext } from 'react';
export enum Theme {
LIGHT = 'light',
DARK = 'dark',
}
export interface ThemeContextProps {
theme?: Theme;
setTheme?: (theme: Theme) => void;
}
export const ThemeContext = createContext<ThemeContextProps>({});
export const LOCAL_STORAGE_THEME_KEY = 'themeStart';