1
+ import { Icon as BlueprintIcon , IconName } from '@blueprintjs/core'
2
+ import { Icon as IconifyIcon } from '@iconify/react'
1
3
import simpleIconsGitHub from '@iconify/icons-simple-icons/github'
2
4
import simpleIconsQQ from '@iconify/icons-simple-icons/tencentqq'
3
5
4
- // Keep only the static configuration data
5
- export const NAV_CONFIG = [
6
+ export const NAV_CONFIG : {
7
+ to : string
8
+ labelKey : string
9
+ icon : IconName
10
+ } [ ] = [
6
11
{
7
12
to : '/' ,
8
13
labelKey : 'links.home' ,
@@ -17,50 +22,43 @@ export const NAV_CONFIG = [
17
22
to : '/about' ,
18
23
labelKey : 'links.about' ,
19
24
icon : 'info-sign' ,
20
- } ,
25
+ }
21
26
]
22
27
23
28
export const SOCIAL_CONFIG = [
24
29
{
25
- iconType : 'blueprint' ,
26
- iconName : 'globe' ,
30
+ icon : < BlueprintIcon icon = "globe" className = "mr-2" size = { 12 } /> ,
27
31
href : 'https://maa.plus' ,
28
32
labelKey : 'links.official_site' ,
29
33
} ,
30
34
{
31
- iconType : 'blueprint' ,
32
- iconName : 'edit' ,
35
+ icon : < BlueprintIcon icon = "edit" className = "mr-2" size = { 12 } /> ,
33
36
href : 'https://github.com/MaaAssistantArknights/maa-copilot-frontend/issues/new/choose' ,
34
37
labelKey : 'links.feedback' ,
35
38
} ,
36
39
{
37
- iconType : 'iconify' ,
38
- iconSource : simpleIconsGitHub ,
40
+ icon : < IconifyIcon icon = { simpleIconsGitHub } className = "mr-2" fontSize = "12px" /> ,
39
41
href : 'https://github.com/MaaAssistantArknights/MaaAssistantArknights' ,
40
42
labelKey : 'links.maa_repo' ,
41
43
} ,
42
44
{
43
- iconType : 'iconify' ,
44
- iconSource : simpleIconsGitHub ,
45
+ icon : < IconifyIcon icon = { simpleIconsGitHub } className = "mr-2" fontSize = "12px" /> ,
45
46
href : 'https://github.com/MaaAssistantArknights/maa-copilot-frontend' ,
46
47
labelKey : 'links.frontend_repo' ,
47
48
} ,
48
49
{
49
- iconType : 'iconify' ,
50
- iconSource : simpleIconsGitHub ,
50
+ icon : < IconifyIcon icon = { simpleIconsGitHub } className = "mr-2" fontSize = "12px" /> ,
51
51
href : 'https://github.com/MaaAssistantArknights/MaaBackendCenter' ,
52
52
labelKey : 'links.backend_repo' ,
53
53
} ,
54
54
{
55
- iconType : 'iconify' ,
56
- iconSource : simpleIconsQQ ,
55
+ icon : < IconifyIcon icon = { simpleIconsQQ } className = "mr-2" fontSize = "12px" /> ,
57
56
href : 'https://jq.qq.com/?_wv=1027&k=ElimpMzQ' ,
58
57
labelKey : 'links.creator_group' ,
59
- labelParams : { groupNumber : '1169188429' } , // Modifiable group number
58
+ labelParams : { groupNumber : '1169188429' } ,
60
59
} ,
61
60
{
62
- iconType : 'iconify' ,
63
- iconSource : simpleIconsQQ ,
61
+ icon : < IconifyIcon icon = { simpleIconsQQ } className = "mr-2" fontSize = "12px" /> ,
64
62
href : 'https://ota.maa.plus/MaaAssistantArknights/api/qqgroup/index.html' ,
65
63
labelKey : 'links.sharing_group' ,
66
64
} ,
0 commit comments