1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-03 18:34:15 +01:00
ntfy/web/src/components/AvatarBox.jsx

23 lines
524 B
React
Raw Normal View History

2023-05-23 21:13:01 +02:00
import * as React from "react";
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;