speice.io/pages/LayoutBase.tsx

20 lines
366 B
TypeScript
Raw Normal View History

2023-04-16 20:10:40 -04:00
import { PropsWithChildren } from "react";
import "./style.css";
2023-04-21 21:39:53 -04:00
const Navbar: React.FC = () => (
<span className="navbar">
2023-04-16 20:10:40 -04:00
<a href="/">Home</a>/<a href="/about">About</a>
</span>
);
const Layout: React.FC<PropsWithChildren> = ({ children }) => (
<div className="gridOffset">
2023-04-21 21:39:53 -04:00
<Navbar />
<hr />
2023-04-16 20:10:40 -04:00
{children}
</div>
);
export default Layout;