1
- import { Button , IconName , Tag } from '@blueprintjs/core'
1
+ import { Button , IconName , Navbar , Tag } from '@blueprintjs/core'
2
2
3
3
import { Link , NavLink } from 'react-router-dom'
4
4
import { FCC } from 'types'
5
5
6
6
import { AccountManager } from 'components/AccountManager'
7
7
import { BackToTop } from 'components/BackToTop'
8
+ import { ThemeSwitchButton } from 'components/ThemeSwitchButton'
8
9
9
10
const LINKS : {
10
11
to : string
@@ -23,10 +24,12 @@ const LINKS: {
23
24
} ,
24
25
]
25
26
27
+ // const darkMode = localStorage.getItem('darkMode') === 'true'
28
+
26
29
export const AppLayout : FCC = ( { children } ) => (
27
- < div className = "flex flex-col h-full w-full bg-zinc-50" >
28
- < nav className = "flex w-full px-8 py-2 items-center bg-zinc-100 shadow fixed h-14 z-10 whitespace-nowrap overflow-x-auto overflow-y-hidden" >
29
- < Link to = "/" className = "flex items-center hover:no-underline" >
30
+ < div className = "flex flex-col h-full w-full bg-zinc-50 " >
31
+ < Navbar className = "flex w-full px-8 py-2 items-center bg-zinc-100 shadow fixed h-14 z-10 whitespace-nowrap overflow-x-auto overflow-y-hidden" >
32
+ < Link to = "/" className = "flex items-center hover:no-underline " >
30
33
< div className = "select-none text-lg font-bold leading-none" >
31
34
MAA Copilot
32
35
</ div >
@@ -54,10 +57,11 @@ export const AppLayout: FCC = ({ children }) => (
54
57
55
58
< div className = "flex-1" />
56
59
60
+ < ThemeSwitchButton />
57
61
< AccountManager />
58
- </ nav >
62
+ </ Navbar >
59
63
60
- < div className = "pt-14 pb-16" > { children } </ div >
64
+ < div className = "docs-content-wrapper pt-14 pb-16" > { children } </ div >
61
65
62
66
< BackToTop />
63
67
</ div >
0 commit comments