mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 23:56:33 +00:00
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
|
import { useTheme } from "next-themes";
|
||
|
import { MonacoThemeConfig } from "@/config/monaco-theme";
|
||
|
|
||
|
export function useMonacoTheme() {
|
||
|
const { resolvedTheme } = useTheme();
|
||
|
|
||
|
const monacoTheme = resolvedTheme === "light" ? MonacoThemeConfig.light : MonacoThemeConfig.dark;
|
||
|
|
||
|
return {
|
||
|
monacoTheme,
|
||
|
};
|
||
|
}
|