mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 14:28:04 +00:00
30 lines
660 B
TypeScript
30 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;
|