1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 14:28:04 +00:00
_/styles/TopAppBar.tsx

30 lines
642 B
TypeScript
Raw Normal View History

2019-04-23 16:48:33 +09:00
import React from "react";
import Link from "next/link";
import { makeStyles } from "@material-ui/styles";
import { AppBar, Toolbar, IconButton } from "@material-ui/core";
import { Home } from "@material-ui/icons";
const useStyles = makeStyles({
root: {
flexGrow: 1
}
});
const TopAppBar: React.FC = () => {
const classes = useStyles();
return (
<div className={classes.root}>
2019-04-23 22:31:38 +09:00
<AppBar color="default">
2019-04-23 16:48:33 +09:00
<Toolbar>
<Link href="/">
2019-04-23 22:31:38 +09:00
<IconButton>
2019-04-23 16:48:33 +09:00
<Home />
</IconButton>
</Link>
</Toolbar>
</AppBar>
</div>
);
};
export default TopAppBar;