stort/src/components/HeaderBar/HeaderBar.tsx

58 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-08-01 01:47:08 +08:00
import { Box, Button, IconButton, Typography } from "@mui/material";
2024-07-30 22:27:23 +08:00
import { WindowButtons } from "./WindowButtons";
2024-08-06 23:31:05 +08:00
import { BugReport, BugReportOutlined } from "@mui/icons-material";
2024-08-05 21:03:36 +08:00
import { useRouter } from "next/router";
2024-08-06 23:31:05 +08:00
import { Settings } from "./Settings/Settings";
2024-07-30 22:27:23 +08:00
export const HeaderBar = () => {
2024-08-05 21:03:36 +08:00
const router = useRouter();
2024-07-30 22:27:23 +08:00
return (
<Box
2024-07-30 23:05:36 +08:00
className="titlebar"
data-tauri-drag-region="true"
2024-07-30 22:27:23 +08:00
sx={{
2024-07-30 23:05:36 +08:00
alignItems: "center",
// TODO: remove when done
borderBottom: "1px solid red",
2024-07-30 22:27:23 +08:00
display: "flex",
flexDirection: "row",
2024-08-01 01:47:08 +08:00
height: "48px",
2024-07-30 23:05:36 +08:00
justifyContent: "space-between",
2024-07-30 22:27:23 +08:00
p: 1,
}}
>
2024-07-30 23:05:36 +08:00
<Box
className="titlebar"
data-tauri-drag-region="true"
sx={{
alignItems: "center",
display: "flex",
flexDirection: "row",
}}
>
hello this is the left side
</Box>
<Box
className="titlebar"
data-tauri-drag-region="true"
sx={{
alignItems: "center",
display: "flex",
flexDirection: "row",
}}
>
2024-08-05 21:03:36 +08:00
<IconButton
onClick={() => {
router.push("/testing");
}}
>
2024-08-06 23:31:05 +08:00
<BugReportOutlined />
2024-08-01 01:47:08 +08:00
</IconButton>
2024-08-06 23:31:05 +08:00
<Settings />
2024-07-30 23:05:36 +08:00
<WindowButtons />
</Box>
2024-07-30 22:27:23 +08:00
</Box>
);
};