Raw
1 import { createContext } from "react"
2
3 export type ThemeOption = "light" | "dark" | "system"
4 export type ThemeValue = "light" | "dark"
5
6 type ThemeContextValue = {
7 theme: ThemeOption
8 setTheme: (theme: ThemeOption) => void
9 }
10
11 export const ThemeContext = createContext<ThemeContextValue | null>(null)