-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67ac841
commit 8ed6b91
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {AppBar, Box, IconButton, Toolbar, Typography} from "@mui/material"; | ||
import MenuIcon from "@mui/icons-material/Menu"; | ||
|
||
interface NavBarProps { | ||
version: string; | ||
} | ||
|
||
const NavBar = ({ version }: NavBarProps) => { | ||
return ( | ||
<Box ssx={{ flexGrow: 1 }}> | ||
<AppBar position="static"> | ||
<Toolbar> | ||
<IconButton size="large" edge="start" color="inherit" aria-label="menu" sx={{ mr: 2 }}> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Typography variant="h6" sx={{ flexGrow: 1 }} display={{ xs: "none", sm: "none", md: "block" }}> | ||
zrok { version !== "" ? " | " + version : ""} | ||
</Typography> | ||
</Toolbar> | ||
</AppBar> | ||
</Box> | ||
); | ||
} | ||
|
||
export default NavBar; |