2023-05-23 21:13:01 +02:00
|
|
|
import * as React from "react";
|
2023-05-24 12:25:20 +02:00
|
|
|
import { Avatar, Box } from "@mui/material";
|
2023-02-11 20:13:10 +01:00
|
|
|
import logo from "../img/ntfy-filled.svg";
|
2022-12-21 19:19:07 +01:00
|
|
|
|
2023-05-24 09:03:28 +02:00
|
|
|
const AvatarBox = (props) => (
|
|
|
|
<Box
|
|
|
|
sx={{
|
|
|
|
display: "flex",
|
|
|
|
flexGrow: 1,
|
|
|
|
justifyContent: "center",
|
|
|
|
flexDirection: "column",
|
|
|
|
alignContent: "center",
|
|
|
|
alignItems: "center",
|
|
|
|
height: "100vh",
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Avatar sx={{ m: 2, width: 64, height: 64, borderRadius: 3 }} src={logo} variant="rounded" />
|
|
|
|
{props.children}
|
|
|
|
</Box>
|
|
|
|
);
|
2022-12-21 19:19:07 +01:00
|
|
|
|
|
|
|
export default AvatarBox;
|