init: чистый старт Laravel + Vuexy

This commit is contained in:
2026-02-20 13:30:03 +03:00
commit af53445c26
474 changed files with 58860 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import type { Chat, ChatContact, ChatStatus } from '@db/apps/chat/types'
export type ActiveChat = {
chat?: Chat
contact: ChatContact
} | null
export const useChat = () => {
const resolveAvatarBadgeVariant = (status: ChatStatus) => {
if (status === 'online')
return 'success'
if (status === 'busy')
return 'error'
if (status === 'away')
return 'warning'
return 'secondary'
}
return {
resolveAvatarBadgeVariant,
}
}