-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJournalHeader.js
More file actions
36 lines (34 loc) · 1.04 KB
/
JournalHeader.js
File metadata and controls
36 lines (34 loc) · 1.04 KB
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
34
35
36
import { Box, Button, Typography } from "@mui/material";
import FilterAltOutlinedIcon from "@mui/icons-material/FilterAltOutlined";
import AddIcon from "@mui/icons-material/Add";
export default function JournalHeader({
setFilterDialogOpen,
setNewEntryOpen,
handleJSONDownload
}) {
const handleOpenFilterDialog = () => setFilterDialogOpen(true);
return (
<>
<Box sx={{ display: "flex", justifyContent: "space-between", mb: 4 }}>
<Typography variant="h1">Journal</Typography>
<Button
variant="outline-orange"
onClick={handleOpenFilterDialog}
startIcon={<FilterAltOutlinedIcon />}
>
Filter
</Button>
<Button variant="outline-orange" onClick={handleJSONDownload}>Export</Button>
</Box>
<Box sx={{ display: "flex", justifyContent: "flex-end", mb: 1 }}>
<Button
variant="outline-orange"
onClick={() => setNewEntryOpen(true)}
startIcon={<AddIcon />}
>
Add Entry
</Button>
</Box>
</>
);
}