1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/styles/TopAppBar.tsx
2019-04-23 16:48:33 +09:00

29 lines
660 B
TypeScript

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}>
<AppBar position="static">
<Toolbar>
<Link href="/">
<IconButton color="inherit">
<Home />
</IconButton>
</Link>
</Toolbar>
</AppBar>
</div>
);
};
export default TopAppBar;