blob: 32949d6e1b8cfb5066b9c074a1287eb3f58cfa36 [file] [log] [blame]
import React from 'react';
import { Box, Card, CardContent, Typography } from '@mui/material';
export default function JamiIdCard(props) {
const account = props.account
const registeredName = account.getRegisteredName()
return <Card style={{marginBottom:16}}>
<CardContent>
<Box>
<Typography color="textSecondary">
Jami ID
</Typography>
<Typography variant="h5" component="h2" gutterBottom noWrap>{account.getUri()}</Typography>
</Box>
{registeredName && <Box>
<Typography color="textSecondary" >
Jami username
</Typography>
<Typography variant="h5" component="h2" noWrap>{registeredName}</Typography>
</Box>
}
</CardContent>
</Card>
}