import { currentProfile } from '../services' const pidMixin = { props: { pid: { type: Number, required: true, validator: prop => typeof prop === 'number' || prop === null, }, }, } const profileMixin = { computed: { profile() { return currentProfile }, isLoading() { return currentProfile.isLoading }, isLoggedIn() { return currentProfile.isLoggedIn }, }, } export { pidMixin, profileMixin }