Frontend migration
This commit is contained in:
10
frontend/utils/useThemeColors.ts
Normal file
10
frontend/utils/useThemeColors.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import {useContext} from "react";
|
||||
import {ThemeContext} from "@/components/provider/ThemeProvider";
|
||||
import {themeColors} from "@/components/Helper/ThemeColors";
|
||||
|
||||
export const useThemeColors = () => {
|
||||
const {theme} = useContext(ThemeContext);
|
||||
return themeColors[theme];
|
||||
};
|
||||
Reference in New Issue
Block a user