blob: b999780a740345ce5a48b0468fa48b5159cdf234 [file] [log] [blame]
Adrien Béraudab519ff2022-05-03 15:34:48 -04001import { Box, Card, CardContent, Typography } from '@mui/material';
Adrien Béraud6ecaa402021-04-06 17:37:25 -04002
Adrien Béraud150b4782021-04-21 19:40:59 -04003export default function JamiIdCard(props) {
Adrien Béraud150b4782021-04-21 19:40:59 -04004 const account = props.account
5 const registeredName = account.getRegisteredName()
6 return <Card style={{marginBottom:16}}>
7 <CardContent>
8 <Box>
idillonfb2af5b2022-09-16 13:40:08 -04009 <Typography color="textSecondary">
Adrien Béraud150b4782021-04-21 19:40:59 -040010 Jami ID
11 </Typography>
12 <Typography variant="h5" component="h2" gutterBottom noWrap>{account.getUri()}</Typography>
13 </Box>
14 {registeredName && <Box>
idillonfb2af5b2022-09-16 13:40:08 -040015 <Typography color="textSecondary" >
Adrien Béraud150b4782021-04-21 19:40:59 -040016 Jami username
17 </Typography>
18 <Typography variant="h5" component="h2" noWrap>{registeredName}</Typography>
19 </Box>
20 }
21 </CardContent>
22 </Card>
23}