2019-06-12 20:16:55 +00:00
|
|
|
import AuthForm from '../auth_form/auth_form.js'
|
2016-10-30 15:53:58 +00:00
|
|
|
import PostStatusForm from '../post_status_form/post_status_form.vue'
|
2019-03-05 19:01:49 +00:00
|
|
|
import UserCard from '../user_card/user_card.vue'
|
2019-06-12 20:16:55 +00:00
|
|
|
import { mapState } from 'vuex'
|
2016-10-27 16:02:28 +00:00
|
|
|
|
|
|
|
const UserPanel = {
|
|
|
|
computed: {
|
2019-06-12 20:16:55 +00:00
|
|
|
signedIn () { return this.user },
|
|
|
|
...mapState({ user: state => state.users.currentUser })
|
2016-10-27 16:02:28 +00:00
|
|
|
},
|
|
|
|
components: {
|
2019-06-12 20:16:55 +00:00
|
|
|
AuthForm,
|
2016-11-30 21:27:19 +00:00
|
|
|
PostStatusForm,
|
2019-03-05 19:01:49 +00:00
|
|
|
UserCard
|
2016-10-27 16:02:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default UserPanel
|