mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
36 lines
925 B
TypeScript
36 lines
925 B
TypeScript
import { IUserSettingsChildProps } from "pages/Settings/UserSettings";
|
|
import { Link } from "react-router-dom";
|
|
|
|
import { Grid, Avatar, Typography, Button } from "@mui/material";
|
|
|
|
import routes from "constants/routes";
|
|
|
|
export default function Account({ settings }: IUserSettingsChildProps) {
|
|
return (
|
|
<Grid container spacing={2} alignItems="center">
|
|
<Grid item>
|
|
<Avatar src={settings.user.photoURL} />
|
|
</Grid>
|
|
|
|
<Grid item xs>
|
|
<Typography variant="body1" style={{ userSelect: "all" }}>
|
|
{settings.user.displayName}
|
|
</Typography>
|
|
<Typography
|
|
variant="body2"
|
|
color="textSecondary"
|
|
style={{ userSelect: "all" }}
|
|
>
|
|
{settings.user.email}
|
|
</Typography>
|
|
</Grid>
|
|
|
|
<Grid item>
|
|
<Button component={Link} to={routes.signOut}>
|
|
Sign out
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
);
|
|
}
|