mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
14 lines
No EOL
340 B
TypeScript
14 lines
No EOL
340 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="avatar-telegram"
|
|
/>
|
|
:
|
|
null
|
|
} |