2019-05-25 22:27:00 +03:00
import React from 'react' ;
import { NavLink , withRouter } from 'react-router-dom' ;
import { FormattedMessage } from 'react-intl' ;
import Icon from 'mastodon/components/icon' ;
2022-03-03 07:45:30 +02:00
import { showTrends } from 'mastodon/initial_state' ;
2019-05-25 22:27:00 +03:00
import NotificationsCounterIcon from './notifications_counter_icon' ;
2019-05-26 03:55:37 +03:00
import FollowRequestsNavLink from './follow_requests_nav_link' ;
2019-05-25 22:27:00 +03:00
import ListPanel from './list_panel' ;
2019-08-06 18:57:52 +03:00
import TrendsContainer from 'mastodon/features/getting_started/containers/trends_container' ;
2019-05-25 22:27:00 +03:00
const NavigationPanel = ( ) => (
< div className = 'navigation-panel' >
2021-09-26 06:46:13 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/home' data - preview - title - id = 'column.home' data - preview - icon = 'home' > < Icon className = 'column-link__icon' id = 'home' fixedWidth / > < FormattedMessage id = 'tabs_bar.home' defaultMessage = 'Home' / > < / N a v L i n k >
2019-05-25 22:27:00 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/notifications' data - preview - title - id = 'column.notifications' data - preview - icon = 'bell' > < NotificationsCounterIcon className = 'column-link__icon' / > < FormattedMessage id = 'tabs_bar.notifications' defaultMessage = 'Notifications' / > < / N a v L i n k >
2019-05-26 03:55:37 +03:00
< FollowRequestsNavLink / >
2022-03-13 06:15:19 +02:00
< NavLink className = 'column-link column-link--transparent' to = '/explore' data - preview - title - id = 'explore.title' data - preview - icon = 'hashtag' > < Icon className = 'column-link__icon' id = 'hashtag' fixedWidth / > < FormattedMessage id = 'explore.title' defaultMessage = 'Explore' / > < / N a v L i n k >
2021-09-26 06:46:13 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/public/local' data - preview - title - id = 'column.community' data - preview - icon = 'users' > < Icon className = 'column-link__icon' id = 'users' fixedWidth / > < FormattedMessage id = 'tabs_bar.local_timeline' defaultMessage = 'Local' / > < / N a v L i n k >
< NavLink className = 'column-link column-link--transparent' exact to = '/public' data - preview - title - id = 'column.public' data - preview - icon = 'globe' > < Icon className = 'column-link__icon' id = 'globe' fixedWidth / > < FormattedMessage id = 'tabs_bar.federated_timeline' defaultMessage = 'Federated' / > < / N a v L i n k >
2022-04-29 01:24:31 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/conversations' > < Icon className = 'column-link__icon' id = 'at' fixedWidth / > < FormattedMessage id = 'column.conversations' defaultMessage = 'Conversations' / > < / N a v L i n k >
2019-05-25 22:27:00 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/favourites' > < Icon className = 'column-link__icon' id = 'star' fixedWidth / > < FormattedMessage id = 'navigation_bar.favourites' defaultMessage = 'Favourites' / > < / N a v L i n k >
2019-11-14 00:02:10 +02:00
< NavLink className = 'column-link column-link--transparent' to = '/bookmarks' > < Icon className = 'column-link__icon' id = 'bookmark' fixedWidth / > < FormattedMessage id = 'navigation_bar.bookmarks' defaultMessage = 'Bookmarks' / > < / N a v L i n k >
2019-05-25 22:27:00 +03:00
< NavLink className = 'column-link column-link--transparent' to = '/lists' > < Icon className = 'column-link__icon' id = 'list-ul' fixedWidth / > < FormattedMessage id = 'navigation_bar.lists' defaultMessage = 'Lists' / > < / N a v L i n k >
< ListPanel / >
< hr / >
2019-05-29 17:33:35 +03:00
< a className = 'column-link column-link--transparent' href = '/settings/preferences' > < Icon className = 'column-link__icon' id = 'cog' fixedWidth / > < FormattedMessage id = 'navigation_bar.preferences' defaultMessage = 'Preferences' / > < / a >
2019-06-04 20:50:38 +03:00
< a className = 'column-link column-link--transparent' href = '/relationships' > < Icon className = 'column-link__icon' id = 'users' fixedWidth / > < FormattedMessage id = 'navigation_bar.follows_and_followers' defaultMessage = 'Follows and followers' / > < / a >
2019-08-06 18:57:52 +03:00
{ showTrends && < div className = 'flex-spacer' / > }
{ showTrends && < TrendsContainer / > }
2019-05-25 22:27:00 +03:00
< / d i v >
) ;
export default withRouter ( NavigationPanel ) ;