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