akkoma-fe/src/components/timeline_menu/timeline_menu_content.js

33 lines
657 B
JavaScript
Raw Normal View History

2021-02-22 14:24:04 +00:00
import { mapState } from 'vuex'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faUsers,
faGlobe,
faBookmark,
faEnvelope,
2022-07-22 14:36:45 +00:00
faHome,
faCircle
2021-02-22 14:24:04 +00:00
} from '@fortawesome/free-solid-svg-icons'
library.add(
faUsers,
faGlobe,
faBookmark,
faEnvelope,
2022-07-22 14:36:45 +00:00
faHome,
faCircle
2021-02-22 14:24:04 +00:00
)
const TimelineMenuContent = {
computed: {
...mapState({
currentUser: state => state.users.currentUser,
privateMode: state => state.instance.private,
federating: state => state.instance.federating,
showBubbleTimeline: state => (state.instance.localBubbleInstances.length > 0)
2021-02-22 14:24:04 +00:00
})
}
}
export default TimelineMenuContent