diff --git a/src/hooks/use-monaco-theme.ts b/src/hooks/use-monaco-theme.ts index 3f2d113..a83ab28 100644 --- a/src/hooks/use-monaco-theme.ts +++ b/src/hooks/use-monaco-theme.ts @@ -1,11 +1,10 @@ import { useTheme } from "next-themes"; -import { MonacoTheme } from "@/types/monaco-theme"; -import { MonacoThemeConfig } from "@/config/monaco-theme"; +import { DefaultLightThemeConfig, DefaultDarkThemeConfig } from "@/config/monaco-theme"; export function useMonacoTheme() { const { resolvedTheme } = useTheme(); - const currentTheme = resolvedTheme === "light" ? MonacoThemeConfig[MonacoTheme.GitHubLightDefault].id : MonacoThemeConfig[MonacoTheme.GitHubDarkDefault].id; + const currentTheme = resolvedTheme === "light" ? DefaultLightThemeConfig.id : DefaultDarkThemeConfig.id; return { currentTheme,