-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAccountTile.js
More file actions
38 lines (32 loc) · 1.01 KB
/
Copy pathAccountTile.js
File metadata and controls
38 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from 'react'
import '../../styles/AccountTile.css'
import { MdAccountBox, MdRemoveRedEye } from 'react-icons/md'
import Image from "../../assets/colin-profile.png"
/**
* @module AccountTile
* @param {Object} accountInfo
* @param {Function} logout
* @description Display of basic account info in a single tile
* @returns Component to be displayed
* @example
* <AccountTile accountInfo={accountInfo} logout={logout} />
*/
const AccountTile = ({ accountInfo, logout }) => {
console.log("ac: " + accountInfo);
return (
<div className="base">
<div className="account-photo">
<img src={accountInfo.photo} />
</div>
<div className="account-info">
<div className="acc-name">{accountInfo.user_email}</div>
</div>
<div>
<div onClick={logout} className="logout">
Logout
</div>
</div>
</div>
)
}
export default AccountTile