Files
List_ultimate/app/stores/burger.ts
2026-02-26 21:29:34 +01:00

22 lines
321 B
TypeScript

import { defineStore } from 'pinia'
export const useBurgerStore = defineStore('burger', {
state: () => ({
checked: false as boolean,
}),
actions: {
toggle() {
this.checked = !this.checked
},
open() {
this.checked = true
},
close() {
this.checked = false
},
},
})