wip
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user