- Bitcoin

- Circuito non aggiungere se già esiste
This commit is contained in:
Surya Paolo
2024-02-23 22:12:47 +01:00
parent 70f5beb1cb
commit f91de26a9a
23 changed files with 215 additions and 109 deletions

27
src/store/dialog.ts Normal file
View File

@@ -0,0 +1,27 @@
// store/dialog.ts
import { reactive } from 'vue';
interface DialogState {
isOpen: boolean;
}
const state: DialogState = reactive({
isOpen: false,
});
export const useDialogStore = () => {
const openDialog = () => {
state.isOpen = true;
};
const closeDialog = () => {
state.isOpen = false;
};
return {
state,
openDialog,
closeDialog,
};
};