diff --git a/src/app/page.tsx b/src/app/page.tsx index ef79253..216a745 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { Dialog, DialogPanel } from '@headlessui/react' -import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' +import { Bars3Icon, XMarkIcon, SunIcon, MoonIcon } from '@heroicons/react/24/outline' const navigation = [ { name: 'Shop', href: '/shop' }, @@ -13,18 +13,23 @@ const navigation = [ export default function Example() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false) + const [isDarkMode, setIsDarkMode] = useState(true) + + const toggleTheme = () => { + setIsDarkMode(!isDarkMode) + } return ( -