mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
|
import { LoginContext } from "../contexts/login";
|
||
|
import { useDefinedContext } from "../hooks/useDefinedContext";
|
||
|
|
||
|
export function UserAvatar() {
|
||
|
const [login, _] = useDefinedContext(LoginContext)
|
||
|
|
||
|
return login ?
|
||
|
<img
|
||
|
src={login?.photo_url}
|
||
|
className="img-telegram-avatar"
|
||
|
/>
|
||
|
:
|
||
|
null
|
||
|
}
|