ThemeToggle component that allows users to switch between light and dark themes.
It uses the useTheme hook to manage the current theme and toggle it.
The component displays a sun icon for light mode and a moon icon for dark mode.
Returns Element
ThemeToggle component that allows users to switch between light and dark themes.
ThemeToggle component that allows users to switch between light and dark themes. It uses the
useTheme
hook to manage the current theme and toggle it. The component displays a sun icon for light mode and a moon icon for dark mode.