blob: 68c4e6cdc77f348f5481b27a67495faffd4892f3 [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';
3import makeStyles from '@mui/styles/makeStyles';
Adrien Béraud6ecaa402021-04-06 17:37:25 -04004
Adrien Béraud150b4782021-04-21 19:40:59 -04005const useStyles = makeStyles({
6 title: {
7 fontSize: 14,
8 }, pos: {
9 fontSize: 14,
Adrien Béraud6ecaa402021-04-06 17:37:25 -040010 }
Adrien Béraud150b4782021-04-21 19:40:59 -040011});
Adrien Béraud6ecaa402021-04-06 17:37:25 -040012
Adrien Béraud150b4782021-04-21 19:40:59 -040013export default function JamiIdCard(props) {
14 const classes = useStyles()
15 const account = props.account
16 const registeredName = account.getRegisteredName()
17 return <Card style={{marginBottom:16}}>
18 <CardContent>
19 <Box>
20 <Typography className={classes.title} color="textSecondary">
21 Jami ID
22 </Typography>
23 <Typography variant="h5" component="h2" gutterBottom noWrap>{account.getUri()}</Typography>
24 </Box>
25 {registeredName && <Box>
26 <Typography className={classes.title} color="textSecondary" >
27 Jami username
28 </Typography>
29 <Typography variant="h5" component="h2" noWrap>{registeredName}</Typography>
30 </Box>
31 }
32 </CardContent>
33 </Card>
34}