/ concept-collection / proofery-web
Sign in
concept-collection / proofery-web
proofery-web / src / components / AppBar.tsx
29 lines · 732 BCodeBlameHistory
c1bee11initialJeremy Magland 1import { AppBar as MuiAppBar, Toolbar, Typography, Button, Box } from '@mui/material';
2import { Download } from '@mui/icons-material';
4interface AppBarProps {
5 onDownload: () => void;
6}
8const AppBar: React.FC<AppBarProps> = ({ onDownload }) => {
9 return (
10 <MuiAppBar position="static" elevation={1}>
11 <Toolbar>
12 <Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
13 Proofery - Proof Verification (WIP)
14 </Typography>
15 <Box>
16 <Button
17 color="inherit"
18 startIcon={<Download />}
19 onClick={onDownload}
20 >
21 Download .prf
22 </Button>
23 </Box>
24 </Toolbar>
25 </MuiAppBar>
26 );
27};
29export default AppBar;
moveopenescclose