Move to Tauri and rust

This commit is contained in:
Prayag Prajapati committed 2023-01-19 22:10:04 +05:30
1 parent 7a50c0f167
commit 8d3c30f4d0
77 files changed
+7861 -975

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
/** @format */
import AppBar from "@mui/material/AppBar";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton";
import ArrowLeft from "mdi-material-ui/ArrowLeft";
import { useNavigate } from "react-router-dom";
export const AppBarBackOnly = () => {
const navigate = useNavigate();
const handleBack = () => {
navigate(-1);
};
return (
<AppBar elevation={0} color="transparent" position="fixed">
<Toolbar>
<IconButton
size="large"
edge="start"
color="white"
aria-label="back"
onClick={handleBack}
sx={{ mr: 2 }}
>
<ArrowLeft />
</IconButton>
</Toolbar>
</AppBar>
);
};