diff --git a/src/shared/SwitchDarkMode.tsx b/src/shared/SwitchDarkMode.tsx new file mode 100644 index 0000000..31fea42 --- /dev/null +++ b/src/shared/SwitchDarkMode.tsx @@ -0,0 +1,28 @@ +"use client"; + +import React from "react"; +import { MoonIcon } from "@heroicons/react/24/solid"; +import { SunIcon } from "@heroicons/react/24/outline"; +import { useThemeMode } from "@/utils/useThemeMode"; +export interface SwitchDarkModeProps { + className?: string; +} +const SwitchDarkMode: React.FC = ({ className = "" }) => { + const { _toogleDarkMode, isDarkMode, toDark, toLight } = useThemeMode(); + + return ( + + ); +}; + +export default SwitchDarkMode;