mirror of
https://github.com/bspeice/speice.io
synced 2024-11-15 06:28:10 -05:00
20 lines
366 B
TypeScript
20 lines
366 B
TypeScript
import { PropsWithChildren } from "react";
|
|
|
|
import "./style.css";
|
|
|
|
const Navbar: React.FC = () => (
|
|
<span className="navbar">
|
|
<a href="/">Home</a>/<a href="/about">About</a>
|
|
</span>
|
|
);
|
|
|
|
const Layout: React.FC<PropsWithChildren> = ({ children }) => (
|
|
<div className="gridOffset">
|
|
<Navbar />
|
|
<hr />
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
export default Layout;
|