'use client'; import GlobalContext from '@/context/GlobalContext'; import { useContext } from 'react'; import { RiContrastLine } from 'react-icons/ri'; const ThemeSwitch = () => { const { theme, setTheme } = useContext(GlobalContext).themeContext; return (
setTheme('light')} style={{ color: theme === 'light' ? '#121268' : '#D9D9D9' }}> Light setTheme('dark')} style={{ color: theme === 'dark' ? '#37ABE1' : '#D9D9D9' }}> Dark
); }; export default ThemeSwitch;