trucazo 2
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 41s

This commit is contained in:
2025-05-29 18:27:05 -06:00
parent be3fbf4080
commit af75b4696e

20
ui/src/stores/useUi.js Normal file
View File

@@ -0,0 +1,20 @@
// src/stores/useUi.js
import { defineStore } from 'pinia'
export const useUi = defineStore('ui', {
state: () => ({
sidebarOpen: true, // visible por defecto en desktop
}),
actions: {
toggleSidebar () {
this.sidebarOpen = !this.sidebarOpen
},
closeSidebar () {
this.sidebarOpen = false
},
openSidebar () {
this.sidebarOpen = true
},
},
})