datalogger/frontend/src/components/header/index.tsx

19 lines
470 B
TypeScript

import { FunctionalComponent, h } from "preact";
import { Link } from "preact-router/match";
import * as style from "./style.css";
const Header: FunctionalComponent = () => {
return (
<header class={style.header}>
<h1>datalog viewer thing</h1>
<nav>
<Link activeClassName={style.active} href="/">
Home
</Link>
</nav>
</header>
);
};
export default Header;