mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +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,
|
|
};
|
|
}
|