-
-
Notifications
You must be signed in to change notification settings - Fork 558
/
Copy pathlogo.tsx
33 lines (29 loc) · 860 Bytes
/
logo.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-FileCopyrightText: 2014-present Kriasoft */
/* SPDX-License-Identifier: MIT */
import { BrightnessAutoRounded } from "@mui/icons-material";
import { Box, BoxProps, IconButton, Typography } from "@mui/joy";
import { Link } from "react-router-dom";
export function Logo(props: LogoProps): JSX.Element {
const { sx, ...other } = props;
return (
<Box
sx={{
py: 1,
px: 2,
display: "flex",
alignItems: "center",
gap: 1,
...sx,
}}
{...other}
>
<IconButton component={Link} to="/" color="primary" variant="soft">
<BrightnessAutoRounded />
</IconButton>
<Typography sx={{ fontSize: "1.25rem" }} level="h4" component="div">
{import.meta.env.VITE_APP_NAME}
</Typography>
</Box>
);
}
export type LogoProps = Omit<BoxProps, "children">;