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