import { AiOutlineControl } from 'react-icons/ai'; import { useContext } from 'react'; import { ThemeContext } from '../../contexts/ThemeContext'; import { LoadingContext } from '../../contexts/LoadingContext'; import { skeleton } from '../../helpers/utils'; import config from '../../ezprofile.config'; const ThemeChanger = () => { const [theme, setTheme] = useContext(ThemeContext); const [loading] = useContext(LoadingContext); const changeTheme = (e, selectedTheme) => { e.preventDefault(); document.querySelector('html').setAttribute('data-theme', selectedTheme); localStorage.setItem('ezprofile-theme', selectedTheme); setTheme(selectedTheme); }; return (