tethys.backend/resources/js/Stores/layout.ts
2023-03-17 16:13:37 +01:00

15 lines
296 B
TypeScript

import { defineStore } from 'pinia';
export const LayoutService = defineStore('layout', {
state: () => ({
isAsideMobileExpanded: false, // via action
isAsideLgActive: false,
}),
actions: {
asideMobileToggle() {
this.isAsideMobileExpanded = !this.isAsideMobileExpanded;
},
},
});