Первоначальная версия VidConf

This commit is contained in:
2026-07-23 01:04:01 +03:00
commit 896455381a
335 changed files with 61527 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { useContext } from 'react'
import { AuthContext, type AuthContextValue } from '@/auth/authContext'
/** Хук доступа к текущей сессии пользователя. Должен использоваться внутри AuthProvider. */
export function useAuth(): AuthContextValue {
const ctx = useContext(AuthContext)
if (!ctx) throw new Error('useAuth должен использоваться внутри <AuthProvider>')
return ctx
}