+
+ {
+ const nameMatch = pages.find(page => page.name === tab)
+ if (nameMatch?.action) {
+ nameMatch.action()
+ } else {
+ router.push(`${tab}`)
+ }
+ }}>
+ {pages.map((tab, index) => {
+ console.log(tab, tab.condition)
+ if (tab.condition)
+ return {tab.icon} {tab.name}>}
+ value={tab.href || tab.name}
+ key={`${tab.name}-${index}`}
+ />
+ else return null
+ })}
+
+
+
+ {isMobile ? (
+
+ ) : (
+ //
+ <>>
+ )}
+
)
}
-export default Header
\ No newline at end of file
+export default Header
+
+
+// {/* {/*