speice.io/pages/LayoutBase.tsx
2023-04-22 01:40:15 +00:00

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;