Files
mixtape/zero.Backoffice.UI/app/account/store.ts
T
2021-12-10 14:23:14 +01:00

13 lines
285 B
TypeScript

import { defineStore } from 'pinia';
import { AccountStoreState } from 'zero/account';
export const useAccountStore = defineStore('zero.account', {
state: () => ({
user: undefined
} as AccountStoreState),
getters: {
isAuthenticated: state => state.user != null
}
});