Files
bab-app/src/stores/memberProfile.ts
2023-11-24 07:52:01 -05:00

34 lines
579 B
TypeScript

import { defineStore } from 'pinia';
export interface MemberProfile {
firstName: string;
lastName: string;
certs: string[];
slackID: string;
userID: string;
}
const getSampleData = () => ({
firstName: 'Billy',
lastName: 'Crystal',
certs: ['j27', 'capri25'],
});
export const useMemberProfileStore = defineStore('memberProfile', {
state: () => ({
...getSampleData(),
}),
// getters: {
// doubleCount (state) {
// return state.counter * 2;
// }
// },
// actions: {
// increment () {
// this.counter++;
// }
// }
});