This commit is contained in:
2026-02-23 23:56:39 +03:00
parent 25750fee51
commit 2cc21bb284
15 changed files with 340 additions and 94 deletions

View File

@@ -0,0 +1,17 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
import type { User } from '@/stores/users.ts'
export interface Chat {
id: string
type_id: number
name: string
users: User[]
}
export const useChatsStore = defineStore('chats', () => {
const chats = ref<Chat[]>([])
const selected = ref<string>()
return { chats, selected }
})