1
1
import { GiNotebook } from 'react-icons/gi' ;
2
- import { TEAM_ENABLED } from '../../utils.js' ;
3
2
import { RiLogoutBoxRFill , RiTeamFill } from 'react-icons/ri' ;
4
3
import {
5
- Bookmark ,
6
- Dashboard ,
7
- EmojiObjects ,
8
- ExpandMore ,
9
- FeaturedPlayList ,
10
- Person ,
11
- PostAddOutlined ,
12
- Publish ,
13
- Settings ,
4
+ Bookmark ,
5
+ Dashboard ,
6
+ EmojiObjects ,
7
+ FeaturedPlayList ,
8
+ Person ,
9
+ PostAddOutlined ,
10
+ Publish ,
14
11
} from '@mui/icons-material' ;
12
+ import { TEAM_ENABLED } from '../../utils.js' ;
15
13
16
- export const links = ( { draftCount , myProjectCount , auth, t } ) => [
17
- { label : t ( 'pageWrapper.sidebar.projects' ) , link : '/' , icon : Dashboard } ,
18
- { label : t ( 'pageWrapper.sidebar.profile' ) , link : '/profile' , icon : Person , reactIcon : true , requireAuth : true } ,
19
- { label : t ( 'pageWrapper.sidebar.createProject' ) , link : '/projects/create' , icon : EmojiObjects } ,
20
- ...( auth ?. tags . includes ( 'staff' )
21
- ? [ { label : t ( 'pageWrapper.sidebar.createActivity' ) , link : '/activities/create' , icon : PostAddOutlined } ]
22
- : [ ] ) ,
23
- {
24
- label : `${ t ( 'pageWrapper.sidebar.myDrafts' ) } ` ,
25
- link : `/creators/${ auth ?. username } /drafts` ,
26
- icon : GiNotebook ,
27
- requireAuth : true ,
28
- customButton : true ,
29
- } ,
30
- {
31
- label : `${ t ( 'pageWrapper.sidebar.myProjects' ) } ` ,
32
- link : `/creators/${ auth ?. username } /projects` ,
33
- icon : Publish ,
34
- requireAuth : true ,
35
- customButton : true ,
36
- } ,
37
- { label : t ( 'pageWrapper.sidebar.bookmarks' ) , link : '/projects/saved' , icon : Bookmark , requireAuth : true } ,
38
- ...( TEAM_ENABLED ? [ { label : t ( 'pageWrapper.sidebar.teams' ) , link : '/teams/all' , icon : RiTeamFill } ] : [ ] ) ,
39
- { label : t ( 'pageWrapper.sidebar.expoloreActivities' ) , link : 'https://kriti.unstructured.studio/' , target : '_blank ', icon : FeaturedPlayList } ,
14
+ export const links = ( { auth, t } ) => [
15
+ { label : t ( 'pageWrapper.sidebar.projects' ) , link : '/' , icon : Dashboard } ,
16
+ { label : t ( 'pageWrapper.sidebar.profile' ) , link : '/profile' , icon : Person , reactIcon : true , requireAuth : true } ,
17
+ { label : t ( 'pageWrapper.sidebar.createProject' ) , link : '/projects/create' , icon : EmojiObjects } ,
18
+ ...( auth ?. tags . includes ( 'staff' ) || auth ?. tags . includes ( 'educator ')
19
+ ? [ { label : t ( 'pageWrapper.sidebar.createActivity' ) , link : '/activities/create' , icon : PostAddOutlined } ]
20
+ : [ ] ) ,
21
+ {
22
+ label : `${ t ( 'pageWrapper.sidebar.myDrafts' ) } ` ,
23
+ link : `/creators/${ auth ?. username } /drafts` ,
24
+ icon : GiNotebook ,
25
+ requireAuth : true ,
26
+ customButton : true ,
27
+ } ,
28
+ {
29
+ label : `${ t ( 'pageWrapper.sidebar.myProjects' ) } ` ,
30
+ link : `/creators/${ auth ?. username } /projects` ,
31
+ icon : Publish ,
32
+ requireAuth : true ,
33
+ customButton : true ,
34
+ } ,
35
+ { label : t ( 'pageWrapper.sidebar.bookmarks' ) , link : '/projects/saved' , icon : Bookmark , requireAuth : true } ,
36
+ ...( TEAM_ENABLED ? [ { label : t ( 'pageWrapper.sidebar.teams' ) , link : '/teams/all' , icon : RiTeamFill } ] : [ ] ) ,
37
+ { label : t ( 'pageWrapper.sidebar.expoloreActivities' ) , link : '/activities ' , icon : FeaturedPlayList } ,
40
38
] ;
41
39
42
40
export const bottomLinks = ( { t } ) => [
43
- // { label: t('pageWrapper.sidebar.settings'), link: '/settings', icon: Settings, requireAuth: true },
44
- { label : t ( 'pageWrapper.sidebar.logout' ) , action : 'logout' , icon : RiLogoutBoxRFill , red : true , requireAuth : true } ,
45
- ] ;
41
+ // { label: t('pageWrapper.sidebar.settings'), link: '/settings', icon: Settings, requireAuth: true },
42
+ { label : t ( 'pageWrapper.sidebar.logout' ) , action : 'logout' , icon : RiLogoutBoxRFill , red : true , requireAuth : true } ,
43
+ ] ;
0 commit comments