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