blob: e25610b24b07d5801cd0bac0724f93c3038da252 [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) {
simond47ef9e2022-09-28 22:24:28 -04004 const account = props.account;
5 const registeredName = account.getRegisteredName();
6 return (
7 <Card style={{ marginBottom: 16 }}>
Adrien Béraud150b4782021-04-21 19:40:59 -04008 <CardContent>
9 <Box>
simond47ef9e2022-09-28 22:24:28 -040010 <Typography color="textSecondary">Jami ID</Typography>
11 <Typography variant="h5" component="h2" gutterBottom noWrap>
12 {account.getUri()}
13 </Typography>
Adrien Béraud150b4782021-04-21 19:40:59 -040014 </Box>
simond47ef9e2022-09-28 22:24:28 -040015 {registeredName && (
16 <Box>
17 <Typography color="textSecondary">Jami username</Typography>
18 <Typography variant="h5" component="h2" noWrap>
19 {registeredName}
20 </Typography>
Adrien Béraud150b4782021-04-21 19:40:59 -040021 </Box>
simond47ef9e2022-09-28 22:24:28 -040022 )}
Adrien Béraud150b4782021-04-21 19:40:59 -040023 </CardContent>
24 </Card>
simond47ef9e2022-09-28 22:24:28 -040025 );
Adrien Béraud150b4782021-04-21 19:40:59 -040026}