/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/src/components/UserInfoProvider.tsx
8 строк
345 B
ᴊᴏᴇ ᴄʜᴇɴ
Embed WebContext and add /api/web/user-info endpoint (#8282)
21 май 2026, 21:43
Не верифицирован
21 май 2026, 21:43
90790b2
Код
Авторство
О чём код?
import type { ReactNode } from "react"; import type { UserInfo } from "@/lib/user-info"; import { UserInfoContext } from "@/lib/user-info-context"; export function UserInfoProvider({ value, children }: { value: UserInfo | null; children: ReactNode }) { return <UserInfoContext.Provider value={value}>{children}</UserInfoContext.Provider>; }