Files
IM-web-new/src/stores/navigation.js
T
2026-06-30 10:13:48 +07:00

19 lines
353 B
JavaScript

import { defineStore } from 'pinia';
export const useNavigationStore = defineStore('navigation', {
state: () => ({
section: 'messages'
}),
actions: {
showMessages() {
this.section = 'messages';
},
showContacts() {
this.section = 'contacts';
},
showFavorites() {
this.section = 'favorites';
}
}
});