|
|
@@ -3,30 +3,30 @@ import { useState } from 'react'
|
|
|
import { Logo, LogoWithName } from './products/Logo'
|
|
|
import { SwitcherDialog } from './products/SwitcherDialog'
|
|
|
import { SwitcherPopover } from './products/SwitcherPopover'
|
|
|
-
|
|
|
-const menuItems = ['Create', 'Commerce', 'Utility', 'Dev Tools']
|
|
|
+import { productCategories } from './products/index'
|
|
|
|
|
|
const NavList = () => {
|
|
|
-
|
|
|
- const [active, setActive] = useState();
|
|
|
-
|
|
|
+ const [active, setActive] = useState()
|
|
|
|
|
|
return (
|
|
|
<div className="hidden cursor-pointer gap-8 lg:flex">
|
|
|
- {menuItems.map((item, index) => {
|
|
|
+ {productCategories.map((item, index) => {
|
|
|
return (
|
|
|
- <div className="hidden flex-col lg:flex" key={index}>
|
|
|
- <SwitcherPopover menuItem={menuItems[index]}>
|
|
|
- <Popover.Button className="-mx-4 -my-2 rounded-lg px-4 py-2 text-black dark:text-white" onClick={() => setActive(index)}>
|
|
|
- {item}
|
|
|
- {/* <Logo product={page.product} className="h-8 w-8 sm:hidden" />
|
|
|
+ <div className="hidden flex-col lg:flex" key={index}>
|
|
|
+ <SwitcherPopover menuItem={productCategories[index]}>
|
|
|
+ <Popover.Button
|
|
|
+ className="-mx-4 -my-2 rounded-lg px-4 py-2 text-black dark:text-white"
|
|
|
+ onClick={() => setActive(index)}
|
|
|
+ >
|
|
|
+ {item}
|
|
|
+ {/* <Logo product={page.product} className="h-8 w-8 sm:hidden" />
|
|
|
<LogoWithName
|
|
|
product={page.product}
|
|
|
className="hidden sm:flex"
|
|
|
/> */}
|
|
|
- </Popover.Button>
|
|
|
- </SwitcherPopover>
|
|
|
- </div>
|
|
|
+ </Popover.Button>
|
|
|
+ </SwitcherPopover>
|
|
|
+ </div>
|
|
|
)
|
|
|
})}
|
|
|
</div>
|