Files
it-tools/packages/app/src/modules/command-palette/command-palette.store.ts
Corentin Thomasset b88f13a7ca feat(tools): added token generator
- Added Slider component to the UI library
- Added Checkbox component to the UI library
- Added Textarea component to the UI library
2024-10-26 23:51:56 +02:00

17 lines
419 B
TypeScript

export const useCommandPaletteStore = defineStore('command-palette', () => {
const isCommandPaletteOpen = ref(false);
return {
isCommandPaletteOpen,
toggleCommandPalette() {
isCommandPaletteOpen.value = !isCommandPaletteOpen.value;
},
closeCommandPalette() {
isCommandPaletteOpen.value = false;
},
openCommandPalette() {
isCommandPaletteOpen.value = true;
},
};
});