removeAccount.ts 373 B

12345678910111213141516
  1. import { defineStore } from "pinia";
  2. export const useRemoveAccountStore = props => {
  3. const { modalUuid } = props;
  4. if (!modalUuid) return null;
  5. return defineStore(`removeAccount-${modalUuid}`, {
  6. state: () => ({
  7. githubLinkConfirmed: false
  8. }),
  9. actions: {
  10. init({ githubLinkConfirmed }) {
  11. this.githubLinkConfirmed = !!githubLinkConfirmed;
  12. }
  13. }
  14. })();
  15. };