1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 15:14:23 +00:00
festa/components/UserAvatar.tsx

14 lines
340 B
TypeScript
Raw Normal View History

2022-05-24 16:55:21 +00:00
import { LoginContext } from "../contexts/login";
import { useDefinedContext } from "../hooks/useDefinedContext";
export function UserAvatar() {
const [login, _] = useDefinedContext(LoginContext)
return login ?
<img
src={login?.photo_url}
2022-05-25 14:36:13 +00:00
className="avatar-telegram"
2022-05-24 16:55:21 +00:00
/>
:
null
}