1
- import Tooltip from "@reearth/app/lib/reearth-ui/components/Tooltip" ;
2
1
import { DEFAULT_SIDEBAR_WIDTH } from "@reearth/app/ui/components/Sidebar" ;
3
- import { useT } from "@reearth/services/i18n" ;
2
+ import { useLang , useT } from "@reearth/services/i18n" ;
4
3
import { styled } from "@reearth/services/theme" ;
5
4
import { FC , useMemo } from "react" ;
6
5
@@ -18,6 +17,8 @@ export type DashboardProps = {
18
17
19
18
const Dashboard : FC < DashboardProps > = ( { workspaceId } ) => {
20
19
const t = useT ( ) ;
20
+ const lang = useLang ( ) ;
21
+
21
22
const topTabItems : Omit < TabItems [ ] , "active" > = useMemo (
22
23
( ) => [
23
24
{ id : "projects" , text : t ( "Projects" ) , icon : "grid" } ,
@@ -33,29 +34,31 @@ const Dashboard: FC<DashboardProps> = ({ workspaceId }) => {
33
34
id : "plugin" ,
34
35
text : t ( "Plugin Playground" ) ,
35
36
icon : "puzzlePiece" ,
36
- tileComponent : < Tooltip type = "experimental" /> ,
37
37
path : "/plugin-playground"
38
38
} ,
39
39
{
40
40
id : "documentation" ,
41
41
text : t ( "Documentation" ) ,
42
42
icon : "book" ,
43
- disabled : true
43
+ path :
44
+ lang === "ja"
45
+ ? "https://eukarya.notion.site/Visualizer-1a816e0fb16580bda8b2c2699f80399c"
46
+ : "https://eukarya.notion.site/Visualizer-User-manual-1a816e0fb16580e3a26ac6e35f23a166"
44
47
} ,
45
48
{
46
- id : "community " ,
47
- text : t ( "Community " ) ,
48
- icon : "usersFour " ,
49
- disabled : true
49
+ id : "discord " ,
50
+ text : t ( "Discord " ) ,
51
+ icon : "discord " ,
52
+ path : "https://discord.com/invite/XJhYkQQDAu"
50
53
} ,
51
54
{
52
- id : "help " ,
53
- text : t ( "Help & Support " ) ,
55
+ id : "faq " ,
56
+ text : t ( "FAQ " ) ,
54
57
icon : "question" ,
55
- disabled : true
58
+ path : "https://eukarya.notion.site/FAQ-19616e0fb16580f190aace7a918bfdd2"
56
59
}
57
60
] ,
58
- [ t ]
61
+ [ t , lang ]
59
62
) ;
60
63
61
64
const {
0 commit comments