34 lines
579 B
TypeScript
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++;
|
|
// }
|
|
// }
|
|
});
|